diff options
author | Daniel García <[email protected]> | 2018-02-23 00:38:54 +0100 |
---|---|---|
committer | Daniel García <[email protected]> | 2018-02-23 00:38:54 +0100 |
commit | dfefbf1f313ceaad3fbbec2d4c220ee37722081e (patch) | |
tree | c79cc1f5a4edffabd4c7141175fe2e5794b434d4 /src/crypto.rs | |
parent | c8b45f5fe5284965a25894d1c7d9427988883b53 (diff) | |
download | vaultwarden-dfefbf1f313ceaad3fbbec2d4c220ee37722081e.tar.gz vaultwarden-dfefbf1f313ceaad3fbbec2d4c220ee37722081e.zip |
Fixed cipher import, created missing data structs instead of using generic Value, and fixed some warnings
Diffstat (limited to 'src/crypto.rs')
-rw-r--r-- | src/crypto.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto.rs b/src/crypto.rs index 645ee903..2698c0e4 100644 --- a/src/crypto.rs +++ b/src/crypto.rs @@ -30,7 +30,7 @@ pub fn get_random_64() -> Vec<u8> { pub fn get_random(mut array: Vec<u8>) -> Vec<u8> { use ring::rand::{SecureRandom, SystemRandom}; - SystemRandom::new().fill(&mut array); + SystemRandom::new().fill(&mut array).expect("Error generating random values"); array } |