Skip to content

Commit 5943b6d

Browse files
Truncate fastrand64
1 parent 54be930 commit 5943b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/natives/src/hash/maphash/maphash.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var hashkey [4]uint32
88

99
func init() {
1010
for i := range hashkey {
11-
hashkey[i] = runtime_fastrand64()
11+
hashkey[i] = uint32(runtime_fastrand64())
1212
}
1313
hashkey[0] |= 1 // make sure these numbers are odd
1414
hashkey[1] |= 1

0 commit comments

Comments
 (0)