mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 18:08:09 +03:00
Fixed cipher import, created missing data structs instead of using generic Value, and fixed some warnings
This commit is contained in:
1 parent
c8b45f5fe5
commit
dfefbf1f31
13 files changed
+190
-131
No files matched your search
+1
-1
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user