mirror of
https://github.com/str4d/rage.git
synced 2025-04-03 19:07:42 +03:00
rand 0.8 and rsa 0.5
rand 0.7 is kept as a dependency of age due to x25519-dalek 1.*.
This commit is contained in:
parent
3cca6a03cc
commit
bfb0e0e021
10 changed files with 237 additions and 85 deletions
|
@ -25,7 +25,7 @@ hkdf = "0.11"
|
|||
sha2 = "0.9"
|
||||
|
||||
# - CSPRNG
|
||||
rand = "0.7"
|
||||
rand = "0.8"
|
||||
|
||||
# Parsing
|
||||
cookie-factory = "0.3.1"
|
||||
|
|
|
@ -138,7 +138,7 @@ impl<R: Read, W: Write> Connection<R, W> {
|
|||
let mut rng = thread_rng();
|
||||
(0..2)
|
||||
.map(move |_| {
|
||||
if rng.gen_range(0, 100) < 5 {
|
||||
if rng.gen_range(0..100) < 5 {
|
||||
Some(grease_the_joint())
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue