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
// Float32 returns, as a float32, a pseudo-random number in [0.0,1.0). func (r*Rand) Float32() float32 {
// Same rationale as in Float64: we want to preserve the Go 1 value // stream except we want to fix it not to return 1.0 // This only happens 1/2²⁴ of the time (plus the 1/2⁵³ of the time in Float64).
again:
f:=float32(r.Float64())
iff==1 {
goto again // resample; this branch is taken O(very rarely)
}
returnf
}
It seems on the builder the tests timeout at different points across runs, e.g. TestReadUniformity in https://build.golang.org/log/cc903f92d6a4660454d77a5f2c1267c9dd258dbc, so it's probably just a timeout. Does the machine have hardware floating point? If not, FP is emulated with kernel traps, which is extremely slow.
The math/rand tests are failing on mips64:
Is the float64 to float32 conversion broken?
/cc @cherrymui @crawshaw
The text was updated successfully, but these errors were encountered: