Searched hist:110281 (Results 1 - 1 of 1) sorted by relevance
/freebsd-10.1-release/sys/libkern/ | ||
H A D | random.c | diff 110281 Mon Feb 03 08:29:47 MST 2003 ache Park & Miller PRNG can be safely initialized with any value but 0 and stuck at 0 as designed. Its BSD adaptation tries to fight it by mapping 0 to 2147483647 after calculation, but this method not works since 2147483647 seed returns to 0 again on the next interation. Instead of after calculation mapping, map 0 to another value _before_ calculation, so it never stucks. |
Completed in 65 milliseconds