diff options
author | Alex Auvolat <alex@adnab.me> | 2021-04-08 15:13:02 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-04-08 15:13:02 +0200 |
commit | af6774a511904f25c7d156aeea12504deab82078 (patch) | |
tree | 6b28892439215ddde4109a528c827a77ca41255a /src/model/key_table.rs | |
parent | c35c472dc9b04ed49e28a78bc9fa96baa7282502 (diff) | |
download | garage-af6774a511904f25c7d156aeea12504deab82078.tar.gz garage-af6774a511904f25c7d156aeea12504deab82078.zip |
change a few comments
Diffstat (limited to 'src/model/key_table.rs')
-rw-r--r-- | src/model/key_table.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/key_table.rs b/src/model/key_table.rs index 578f8683..ba1f6b81 100644 --- a/src/model/key_table.rs +++ b/src/model/key_table.rs @@ -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]>()[..]); |