diff options
Diffstat (limited to 'src/runtime/mprof.go')
| -rw-r--r-- | src/runtime/mprof.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/mprof.go b/src/runtime/mprof.go index 0452b1b605..a4cfef72fa 100644 --- a/src/runtime/mprof.go +++ b/src/runtime/mprof.go @@ -696,8 +696,8 @@ func (prof *mLockProfile) recordUnlock(cycles int64) { if cycles == 0 { return } - prevScore := uint64(cheaprand64()) % uint64(prev) - thisScore := uint64(cheaprand64()) % uint64(cycles) + prevScore := cheaprandu64() % uint64(prev) + thisScore := cheaprandu64() % uint64(cycles) if prevScore > thisScore { prof.cyclesLost += cycles return |
