From a651cea2f97882896c0d4ecdee4ae56e7d9abc23 Mon Sep 17 00:00:00 2001 From: Ivan Fraixedes Date: Thu, 16 May 2019 13:22:38 +0200 Subject: [PATCH] pkg/macaroon: fix NewCaveat doc comment --- pkg/macaroon/caveat.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/macaroon/caveat.go b/pkg/macaroon/caveat.go index 6ce0fff4e..1d451a997 100644 --- a/pkg/macaroon/caveat.go +++ b/pkg/macaroon/caveat.go @@ -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[:])