mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-10-27 08:30:13 +00:00
Remove get_random_64()
Its uses are replaced by get_randm_bytes() or encode_random_bytes().
This commit is contained in:
1 parent
d0baa23f9a
commit
7445ee40f8
4 files changed
+3
-8
No files matched your search
+1
-2
@@ -981,8 +981,7 @@ impl Config {
|
||||
if let Some(akey) = self._duo_akey() {
|
||||
akey
|
||||
} else {
|
||||
let akey = crate::crypto::get_random_64();
|
||||
let akey_s = data_encoding::BASE64.encode(&akey);
|
||||
let akey_s = crate::crypto::encode_random_bytes::<64>(data_encoding::BASE64);
|
||||
|
||||
// Save the new value
|
||||
let builder = ConfigBuilder {
|
||||
|
||||
Reference in new issue
Block a user