[Cryptography Team] Re: [squeak-dev] Cryptography: Fortuna>>nextInt:

C. David Shaffer cdshaffer at acm.org
Tue Jul 6 16:47:50 UTC 2010


On 07/06/10 11:52, Chris Muller wrote:
> Hi David, yes, absolutely, Fortuna>>#nextInt: should be deleted,
> because it is a flawed implementation, as the following script
> demonstrates:
>
> "explore it"
> |f|
> f:=Fortuna picker.
> ((1 to: 1000) collect: [ : n | f nextInt: 6 ]) asBag sortedCounts
>
> Note the consistent, heavy weighting for "1"..
>
>   
Ouch, I see.  Done.

David



More information about the Cryptography mailing list