Skip to content

Commit

Permalink
update rand
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Dec 21, 2020
1 parent 2ab708c commit 07aa69f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion postgres-protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion postgres-protocol/src/authentication/sasl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 07aa69f

Please sign in to comment.