pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2015-11-16
2015-11-16 00:42:14 by Martin Nilsson <nilsson@fastmail.com>
55930df2eb450cc0092b4677d473e46d3d13d26c (
3
lines) (+
2
/-
1
)
[
Show
|
Annotate
]
Branch:
8.1
Don't use 0 for max range in my_rand
2106:
{ if(f<=0.0) RETURN 0.0;
-
RETURN (FLOAT_TYPE)ldexp((double)f * my_rand64(
0
), -64);
+
RETURN (FLOAT_TYPE)ldexp((double)f * my_rand64(
0xffffffffffffffff
), -64);
} /*! @decl mixed random(array|multiset x)