Vue complète
Re : [Help-smalltalk] Limits of Random changed due the mersenne twister
De : Mathieu Suen <[email protected]> Ajouter dans les contacts 
À : Holger Hans Peter Freyther <[email protected]>  
________________________________

----- Message d'origine ----
> De : Holger Hans Peter Freyther <[email protected]>
> À : Paolo Bonzini <[email protected]>
> Cc : GNU Smalltalk <[email protected]>
> Envoyé le : Mar 19 juillet 2011, 18h 05min 24s
> Objet : Re: [Help-smalltalk] Limits of Random changed due the mersenne twister
> 
> On 07/19/2011 03:48 PM, Paolo Bonzini wrote:
> 
> > Yes, it should be  enough to add a handler for the failure of
> > #nextLimit:, and combine a  few random integers together before scaling
> > the result down to the limit  value.
> > 
> > Probably the numbers you were getting were not random at  all, so it's
> > good that it now fails. :)
> 
> One more Mersenne Twister  question. So if someone knows a row of 624 random
> numbers, he knows the  internal state of the twister... does it make sense to
> reseed more  often?


For me you don't know the state of the twister. This is because the operation:
  y = mt[mt_index];
  y ^= (y >> 11);
  y ^= (y << 7) & 0x9d2c5680;
  y ^= (y << 15) & 0xefc60000;
  y ^= (y >> 18);

is not reversible.


> 
> not a crypto expert
>      holger
> 
> _______________________________________________
> help-smalltalk  mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/help-smalltalk
>

_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to