You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the runtime, linux/arm defines a global variable randomNumber which is used by cputicks.
arm64 instead has this in src/runtime/os_linux_arm64.go
varrandomNumberuint32//go:nosplitfunccputicks() int64 {
// Currently cputicks() is used in blocking profiler and to seed fastrand1().// nanotime() is a poor approximation of CPU ticks that is enough for the profiler.// randomNumber provides better seeding of fastrand1.returnnanotime() +int64(randomNumber)
}
... but never defines randomNumber to anything, unlike arm.
Bug? Incomplete? Missing TODO?
The text was updated successfully, but these errors were encountered:
In the runtime, linux/arm defines a global variable
randomNumber
which is used bycputicks
.arm64 instead has this in
src/runtime/os_linux_arm64.go
... but never defines randomNumber to anything, unlike arm.
Bug? Incomplete? Missing TODO?
The text was updated successfully, but these errors were encountered: