diff options
Diffstat (limited to 'weed/util/bytes.go')
| -rw-r--r-- | weed/util/bytes.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/util/bytes.go b/weed/util/bytes.go index a7e0c20e2..67e6876fa 100644 --- a/weed/util/bytes.go +++ b/weed/util/bytes.go @@ -143,8 +143,8 @@ func RandomInt32() int32 { return int32(BytesToUint32(buf)) } -func RandomInt64() int64 { - buf := make([]byte, 8) +func RandomBytes(byteCount int) []byte { + buf := make([]byte, byteCount) rand.Read(buf) - return int64(BytesToUint64(buf)) + return buf } |
