Remove get_random_64()

Its uses are replaced by get_randm_bytes() or encode_random_bytes().
This commit is contained in:
Samuel Tardieu
2022-11-13 10:03:04 +01:00
parent d0baa23f9a
commit 7445ee40f8
4 changed files with 3 additions and 8 deletions

View File

@@ -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};