pkg/macaroon: fix NewCaveat doc comment

This commit is contained in:
Ivan Fraixedes 2019-05-16 13:22:38 +02:00 committed by GitHub
parent 2d2301d5ff
commit a651cea2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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[:])