aboutsummaryrefslogtreecommitdiff
path: root/src/model/key_table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-04-08 15:13:02 +0200
committerAlex Auvolat <alex@adnab.me>2021-04-08 15:13:02 +0200
commitaf6774a511904f25c7d156aeea12504deab82078 (patch)
tree6b28892439215ddde4109a528c827a77ca41255a /src/model/key_table.rs
parentc35c472dc9b04ed49e28a78bc9fa96baa7282502 (diff)
downloadgarage-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.rs2
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]>()[..]);