summaryrefslogtreecommitdiffstats
path: root/lib/rand.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2021-02-24 18:23:17 -0500
committerrsiddharth <s@ricketyspace.net>2021-02-24 18:23:17 -0500
commit3d5ecc3132577308636bea80922c74505eec93f0 (patch)
tree3abe10443b27d7ea116cb4cb3be88ebe08315617 /lib/rand.go
parentd8272421760fd310f1f2e237f5c5d48952d3a4ef (diff)
lib: RandomKey -> RandomBytes
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 03fd651..8546948 100644
--- a/lib/rand.go
+++ b/lib/rand.go
@@ -27,7 +27,7 @@ func RandomInt(min, max int64) int64 {
}
}
-func RandomKey(size int) ([]byte, error) {
+func RandomBytes(size int) ([]byte, error) {
k := make([]byte, size)
_, err := rand.Read(k)
if err != nil {