aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rand.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/rand.go')
-rw-r--r--src/runtime/rand.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/rand.go b/src/runtime/rand.go
index 2e44858ee2..0d1d2fe5ba 100644
--- a/src/runtime/rand.go
+++ b/src/runtime/rand.go
@@ -177,6 +177,11 @@ func rand() uint64 {
}
}
+//go:linkname maps_rand internal/runtime/maps.rand
+func maps_rand() uint64 {
+ return rand()
+}
+
// mrandinit initializes the random state of an m.
func mrandinit(mp *m) {
var seed [4]uint64