We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ab708c commit 07aa69fCopy full SHA for 07aa69f
postgres-protocol/Cargo.toml
@@ -16,6 +16,6 @@ fallible-iterator = "0.2"
16
hmac = "0.10"
17
md5 = "0.7"
18
memchr = "2.0"
19
-rand = "0.7"
+rand = "0.8"
20
sha2 = "0.9"
21
stringprep = "0.1"
postgres-protocol/src/authentication/sasl.rs
@@ -135,7 +135,7 @@ impl ScramSha256 {
135
let mut rng = rand::thread_rng();
136
let nonce = (0..NONCE_LENGTH)
137
.map(|_| {
138
- let mut v = rng.gen_range(0x21u8, 0x7e);
+ let mut v = rng.gen_range(0x21u8..0x7e);
139
if v == 0x2c {
140
v = 0x7e
141
}
0 commit comments