diff options
Diffstat (limited to 'lib/rand.go')
-rw-r--r-- | lib/rand.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rand.go b/lib/rand.go index 1ba1679..be95366 100644 --- a/lib/rand.go +++ b/lib/rand.go @@ -37,7 +37,7 @@ func RandomBytes(size int) ([]byte, error) { } // Randomly generates `min` to `max` bytes. -func randomBytesWithLengthBetween(min, max int64) []byte { +func RandomBytesWithLengthBetween(min, max int64) []byte { bs := make([]byte, RandomInt(min, max)) _, err := rand.Read(bs) if err != nil { |