in reply to Re^3: How do I make a random shuffle deterministic?
in thread How do I make a random shuffle deterministic?
I just realized you had the same idea. But
1. The sum of two strings can be identical, try "rolf" and "rofl" and "flor"
2. for ( < @array > ) is dangerous nonsense, always do for ( @array ) without glob
3. if you wanna play save, try a system cmd to get a mac adress.
4. You could determine a unique seed at installation time and store it in a module MyProject::Seed you use later. Like this you have full control (just edit the module) and you only need to fiddle once with the OS for a unique key.
5. you could even request a unique key over web at installation time.
Cheers Rolf
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: How do I make a random shuffle deterministic?
by Anonymous Monk on Dec 05, 2012 at 17:46 UTC | |
by LanX (Saint) on Dec 05, 2012 at 17:53 UTC | |
Re^5: How do I make a random shuffle deterministic?
by Anonymous Monk on Dec 06, 2012 at 15:07 UTC | |
by LanX (Saint) on Dec 06, 2012 at 15:31 UTC |
In Section
Seekers of Perl Wisdom