mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-26 04:16:51 +00:00
change a few comments
This commit is contained in:
@@ -24,7 +24,7 @@ pub struct Key {
|
||||
}
|
||||
|
||||
impl Key {
|
||||
/// Create a new key
|
||||
/// Initialize a new Key, generating a random identifier and associated secret key
|
||||
pub fn new(name: String) -> Self {
|
||||
let key_id = format!("GK{}", hex::encode(&rand::random::<[u8; 12]>()[..]));
|
||||
let secret_key = hex::encode(&rand::random::<[u8; 32]>()[..]);
|
||||
|
||||
Reference in New Issue
Block a user