From 330d2ffdad679580cbc33380d5239b23640eb005 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Wed, 2 Jul 2025 14:54:57 +0300 Subject: [PATCH] rng: fix minor typos Signed-off-by: Manos Pitsidianakis --- vhost-device-rng/README.md | 4 ++-- vhost-device-rng/src/vhu_rng.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vhost-device-rng/README.md b/vhost-device-rng/README.md index 74080c0..f4778d7 100644 --- a/vhost-device-rng/README.md +++ b/vhost-device-rng/README.md @@ -13,7 +13,7 @@ requests more bytes than the allowed limit the thread will block until the start of a new period. The daemon will automatically split the available bandwidth equally between the guest when several threads are requested. -Thought developed and tested with QEMU, the implemenation is based on the +Though developed and tested with QEMU, the implementation is based on the vhost-user protocol and as such should be interoperable with other virtual machine managers. Please see below for working examples. @@ -48,7 +48,7 @@ machine managers. Please see below for working examples. .. option:: -m, --max-bytes - In conjuction with the --period parameter, provides the maximum number of byte + In conjunction with the --period parameter, provides the maximum number of byte per milliseconds a RNG device can generate. ## Examples diff --git a/vhost-device-rng/src/vhu_rng.rs b/vhost-device-rng/src/vhu_rng.rs index ae7f38e..2353b42 100644 --- a/vhost-device-rng/src/vhu_rng.rs +++ b/vhost-device-rng/src/vhu_rng.rs @@ -448,7 +448,7 @@ mod tests { ); // Artificially set the period start time to 10 second. This will simulate a - // condition where the the period has been exeeded and for the quota to be reset + // condition where the the period has been exceeded and for the quota to be reset // to its maximum value. backend.time_sub(Duration::from_secs(10)); assert!(backend @@ -457,7 +457,7 @@ mod tests { // Reset time to right now and set remaining quota to 0. This will simulate a // condition where the quota for a period has been exceeded and force the execution - // thread to wait for the start of the next period before serving requets. + // thread to wait for the start of the next period before serving requests. backend.time_now(); backend.set_quota(0); assert!(backend