pkg/macaroon: fix NewCaveat doc comment
This commit is contained in:
parent
2d2301d5ff
commit
a651cea2f9
@ -7,8 +7,7 @@ import (
|
||||
"crypto/rand"
|
||||
)
|
||||
|
||||
// NewCaveat returns a Caveat with a nonce initialized to the current timestamp
|
||||
// in nanoseconds.
|
||||
// NewCaveat returns a Caveat with a random generated nonce.
|
||||
func NewCaveat() (Caveat, error) {
|
||||
var buf [8]byte
|
||||
_, err := rand.Read(buf[:])
|
||||
|
Loading…
Reference in New Issue
Block a user