diff options
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]>()[..]); |