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

@@ -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
}