From e70c207541d1efe3d4ef4b9b3ab5deee954db074 Mon Sep 17 00:00:00 2001 From: Ismail Khoffi Date: Mon, 19 Apr 2021 16:58:11 +0200 Subject: [PATCH] Update comment to reflect current state of Bytes/Str functions --- libs/rand/random.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/rand/random.go b/libs/rand/random.go index 55e88718eb..ee400e1958 100644 --- a/libs/rand/random.go +++ b/libs/rand/random.go @@ -43,7 +43,7 @@ func Reseed() { } // Str constructs a random alphanumeric string of given length -// from a freshly instantiated prng. +// from math/rand's global default Source. func Str(length int) string { if length <= 0 { return "" @@ -69,7 +69,7 @@ func Str(length int) string { } } -// Bytes returns n random bytes generated from a freshly instantiated prng. +// Bytes returns n random bytes generated from math/rand's global default Source. func Bytes(n int) []byte { bs := make([]byte, n) for i := 0; i < len(bs); i++ {