summaryrefslogtreecommitdiffstats
path: root/lib/rand.go
diff options
context:
space:
mode:
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 {