Skip to content

Commit

Permalink
Update comment to reflect current state of Bytes/Str functions
Browse files Browse the repository at this point in the history
  • Loading branch information
liamsi committed Apr 19, 2021
1 parent edc9cb3 commit e70c207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/rand/random.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand All @@ -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++ {
Expand Down

0 comments on commit e70c207

Please sign in to comment.