switch hardlink id from int64 to bytes

This commit is contained in:
Chris Lu committed 2020-09-24 11:11:42 -07:00
1 parent 4856bce0ee
commit 1012df7bb5
12 files changed
+29 -33

No files matched your search

+3 -3
View File
@@ -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
}