[squeak-dev] Bad value for Random seed ?

Levente Uzonyi leves at elte.hu
Sun Sep 21 15:31:19 UTC 2014


On Sun, 21 Sep 2014, Stéphane Rollandin wrote:

> Ok, thank you both.
>
> Maybe we should put a guard to raise an error in case the seed is too large ?

That's an easy, but not very user friendly solution. I think it would be 
better to transform the input into a valid seed in a safe way. This means 
creating a good hash function which maps any integer into 0..2^31-1.


Levente

>
> Stef
>
>


More information about the Squeak-dev mailing list