Re: Two fixes I would like!

[email protected]
Newsgroups gmane.comp.lang.smalltalk.squeak.foundation
Message-ID <[email protected]>
Luciano Notarfrancesco <[email protected]> wrote:
> Hi Cees,
> 
> --- Cees de Groot <[email protected]> wrote:
> > Fixing Random is more involved. Among others, the
> > fix uses the sound input as
> > a random source, which takes quite a bit of time -
> > acceptable for once every
> > 100,000 UUID's, not acceptable for general random
> > number generation.
> > 
> 
> Right. Keep in mind that the numbers generated with a
> Random are not cryptographicaly secure, and Random was
> never intended for use in applications that require a
> secure PRNG. That's why I wouldn't care to use a very
> good source of randomness for initializing Random.
> What we want is to ensure that two running images will
> not likely generate the same random numbers, and that
> can be done reinitializing the seeds from the
> millisecond clock, the current time and date, the
> author initials, etc, every time an image is started.
> 
> I recently published the Cryptography package
> (http://map2.squeakfoundation.org/sm/package/b7129b1c-c301-4af6-ac3d-c624257f060a),
> and it includes a RandomPool and a SecureRandom. This
> package is still very alpha, but I believe this is the
> way to go for real security (which most applications
> don't require).
> 
> Peace,
> Luciano.-

Ok, then I take it that the fix is OK. Sure, it doesn't repair "Random"
but Random should be fast and have a good class comment explaining its
shortcomings and prehaps refer to the Crypto package.

Thanks for clearing it up.

regards, Göran
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.