We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6dc77c commit d20af11Copy full SHA for d20af11
src/hmacmode.rs
@@ -53,7 +53,7 @@ impl HmacKey {
53
pub fn generate<R: Rng>(mut rng: R) -> Self {
54
let mut key = HmacKey([0; HMAC_SECRET_SIZE]);
55
for i in key.0.iter_mut() {
56
- *i = rng.gen()
+ *i = rng.random()
57
}
58
key
59
src/otpmode.rs
@@ -46,7 +46,7 @@ impl Aes128Key {
46
47
let mut key = Aes128Key([0; 16]);
48
49
50
51
52
0 commit comments