update rand

This commit is contained in:
Steven Fackler
2020-12-21 10:05:20 -05:00
parent 2ab708c4bc
commit 07aa69febf
2 changed files with 2 additions and 2 deletions

View File

@@ -16,6 +16,6 @@ fallible-iterator = "0.2"
hmac = "0.10"
md5 = "0.7"
memchr = "2.0"
rand = "0.7"
rand = "0.8"
sha2 = "0.9"
stringprep = "0.1"

View File

@@ -135,7 +135,7 @@ impl ScramSha256 {
let mut rng = rand::thread_rng();
let nonce = (0..NONCE_LENGTH)
.map(|_| {
let mut v = rng.gen_range(0x21u8, 0x7e);
let mut v = rng.gen_range(0x21u8..0x7e);
if v == 0x2c {
v = 0x7e
}