From c6f9270be1d7d5ac75a585ca267602d525dace32 Mon Sep 17 00:00:00 2001 From: Julien Cretin Date: Wed, 11 Nov 2020 17:52:33 +0100 Subject: [PATCH] Update documentation --- libraries/persistent_store/fuzz/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/persistent_store/fuzz/src/lib.rs b/libraries/persistent_store/fuzz/src/lib.rs index 87ca7aa..90e9dc4 100644 --- a/libraries/persistent_store/fuzz/src/lib.rs +++ b/libraries/persistent_store/fuzz/src/lib.rs @@ -80,7 +80,11 @@ impl Entropy<'_> { result } - /// Reads a bounded number. + /// Reads a number between `min` and `max` (inclusive bounds). + /// + /// The distribution is uniform if the range width is a power of two. Otherwise, the minimum + /// amount of entropy is used (the next power of two) and the distribution is the closest to + /// uniform for that entropy. /// /// # Preconditions ///