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