summaryrefslogtreecommitdiffstats
path: root/lib/rand.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2021-02-24 18:24:46 -0500
committerrsiddharth <s@ricketyspace.net>2021-02-24 18:24:46 -0500
commit9d96d7e781710b306cf40828e35843656ddfe72e (patch)
treeae2705bb1b7eb1319f7d58f686c9bb988e196310 /lib/rand.go
parent3d5ecc3132577308636bea80922c74505eec93f0 (diff)
lib: randomBytes -> randomBytesWithLengthBetween
Diffstat (limited to 'lib/rand.go')
-rw-r--r--lib/rand.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rand.go b/lib/rand.go
index 8546948..1ba1679 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 randomBytes(min, max int64) []byte {
+func randomBytesWithLengthBetween(min, max int64) []byte {
bs := make([]byte, RandomInt(min, max))
_, err := rand.Read(bs)
if err != nil {