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

@@ -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 {