mirror of
https://github.com/restic/restic.git
synced 2026-11-20 04:26:54 +00:00
crypto.go nitpicks
This commit is contained in:
1 parent
a906b9febe
commit
c500b94216
6 files changed
+55
-86
No files matched your search
+1
-1
@@ -176,7 +176,7 @@ func AddKey(s *Server, password string, template *Key) (*Key, error) {
|
||||
|
||||
if template == nil {
|
||||
// generate new random master keys
|
||||
newkey.master = crypto.NewKey()
|
||||
newkey.master = crypto.NewRandomKey()
|
||||
// generate random polynomial for cdc
|
||||
p, err := chunker.RandomPolynomial()
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user