Skip to content

Commit 07aa69f

Browse files
committed
update rand
1 parent 2ab708c commit 07aa69f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

postgres-protocol/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ fallible-iterator = "0.2"
1616
hmac = "0.10"
1717
md5 = "0.7"
1818
memchr = "2.0"
19-
rand = "0.7"
19+
rand = "0.8"
2020
sha2 = "0.9"
2121
stringprep = "0.1"

postgres-protocol/src/authentication/sasl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl ScramSha256 {
135135
let mut rng = rand::thread_rng();
136136
let nonce = (0..NONCE_LENGTH)
137137
.map(|_| {
138-
let mut v = rng.gen_range(0x21u8, 0x7e);
138+
let mut v = rng.gen_range(0x21u8..0x7e);
139139
if v == 0x2c {
140140
v = 0x7e
141141
}

0 commit comments

Comments
 (0)