mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-10 18:55:57 +03:00
Remove get_random_64()
Its uses are replaced by get_randm_bytes() or encode_random_bytes().
This commit is contained in:
@@ -37,10 +37,6 @@ pub fn hmac_sign(key: &str, data: &str) -> String {
|
||||
// Random values
|
||||
//
|
||||
|
||||
pub fn get_random_64() -> Vec<u8> {
|
||||
get_random_bytes::<64>().to_vec()
|
||||
}
|
||||
|
||||
/// Return an array holding `N` random bytes.
|
||||
pub fn get_random_bytes<const N: usize>() -> [u8; N] {
|
||||
use ring::rand::{SecureRandom, SystemRandom};
|
||||
|
Reference in New Issue
Block a user