Mark Dickinson <[email protected]> added the comment: Patch looks good to me.
There's one other subtle bug in random_jumpahead, which is that it's not guaranteed that the resulting state is nonzero. The way to fix this is to add a line like the one near the end of the 'init_by_array' function. mt[0] = 0x80000000UL; /* MSB is 1; assuring non-zero initial array */ ---------- nosy: +mark.dickinson _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue14591> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
