diff options
author | Alex Auvolat <alex@adnab.me> | 2021-04-08 15:13:02 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-04-27 16:53:47 +0200 |
commit | 119217f9f6f904efda33d80f744404c6935ed827 (patch) | |
tree | 49ba7f92e06b68b5aa1f84d082f7eeeb844b5ee2 /src/model/key_table.rs | |
parent | 2812a027ea5a8ac0de22aedce9552c2420c07019 (diff) | |
download | garage-119217f9f6f904efda33d80f744404c6935ed827.tar.gz garage-119217f9f6f904efda33d80f744404c6935ed827.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]>()[..]); |