Perl: the Markov chain saw | |
PerlMonks |
Re^6: How do I make a random shuffle deterministic?by LanX (Saint) |
on Dec 05, 2012 at 17:53 UTC ( [id://1007350]=note: print w/replies, xml ) | Need Help?? |
"rolfi" and "flori"? just a guess: try multiplying each ord with a different prime (by position) and do a module biggest prime <256 before adding. or start a new thread about efficient checksums! :) UPDATE: the automatic seeding is quite efficient, so why don't you determine a unique seed at installation time from a random number.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|