Page 1 of 1

Stockfish random generator (rkiss.h)

Posted: Fri Apr 15, 2011 3:27 pm
by mar
I'd like to ask what's the license for the random number generator routine used in latest stockfish (rkiss.h). I'd like to use it in my program (not necessarily for chess) for it seems to be very fast and very good (MT way too slow and complicated). Thanks.

Re: Stockfish random generator (rkiss.h)

Posted: Fri Apr 15, 2011 3:53 pm
by Gerd Isenberg
mar wrote:I'd like to ask what's the license for the random number generator routine used in latest stockfish (rkiss.h). I'd like to use it in my program (not necessarily for chess) for it seems to be very fast and very good (MT way too slow and complicated). Thanks.
A small noncryptographic pseudorandom number generator by Bob Jenkins is in the public domain. The 64-bit variant applies the same algorithm as the rkiss one by Heinz van Saaren used in Stockfish, giving credit to George Marsiglia as inventor of these kind of kiss prngs.

http://www.talkchess.com/forum/viewtopic.php?t=38313

Re: Stockfish random generator (rkiss.h)

Posted: Fri Apr 15, 2011 5:02 pm
by mar
Gerd Isenberg wrote:
mar wrote:I'd like to ask what's the license for the random number generator routine used in latest stockfish (rkiss.h). I'd like to use it in my program (not necessarily for chess) for it seems to be very fast and very good (MT way too slow and complicated). Thanks.
A small noncryptographic pseudorandom number generator by Bob Jenkins is in the public domain. The 64-bit variant applies the same algorithm as the rkiss one by Heinz van Saaren used in Stockfish, giving credit to George Marsiglia as inventor of these kind of kiss prngs.

http://www.talkchess.com/forum/viewtopic.php?t=38313
I see. Thank you.