switch hardlink id from int64 to bytes

This commit is contained in:
Chris Lu
2020-09-24 11:11:42 -07:00
parent 4856bce0ee
commit 1012df7bb5
12 changed files with 29 additions and 33 deletions

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
}