pike.git/
src/
builtin_functions.c
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 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
8.1
Don't use 0 for max range in my_rand
826:
while( (e+=sizeof(INT64)) <= len ) {
-
str[0] = my_rand64(
0
);
+
str[0] = my_rand64(
0xffffffffffffffff
);
str++; } for(e-=sizeof(INT64);e<len;e++) {
-
ret->str[e] = (char)my_rand(
0
);
+
ret->str[e] = (char)my_rand(
0xffffffff
);
} pop_n_elems(args);