aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAntoine A <>2022-02-17 16:30:49 +0100
committerAntoine A <>2022-02-17 16:30:49 +0100
commit245d087e721b0cb661d8ff483484e4ed0485cf44 (patch)
tree72472fbb388907a36189fa1e5dab6e37d6b9ea77 /common
parentc16d2034a4ff46e12a08f7babb00053ee9685466 (diff)
downloaddepolymerization-245d087e721b0cb661d8ff483484e4ed0485cf44.tar.gz
depolymerization-245d087e721b0cb661d8ff483484e4ed0485cf44.tar.bz2
depolymerization-245d087e721b0cb661d8ff483484e4ed0485cf44.zip
Cleaning and replace code requiring rust version > 1.56.1
Diffstat (limited to 'common')
-rw-r--r--common/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index 35c1fea..99a815d 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -36,7 +36,7 @@ pub mod status;
/// Secure random slice generator using getrandom
pub fn rand_slice<const N: usize>() -> [u8; N] {
let mut slice = [0; N];
- OsRng.fill_bytes(slice.as_mut_slice());
+ OsRng.fill_bytes(&mut slice);
slice
}