tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: randomness (crypto?) code example wanted please?



kre%munnari.OZ.AU@localhost (Robert Elz) writes:

>That could be done too.   sh's $RANDOM is not really intended for
>anything of crypto strength I don't think.  I suspect half the
>implementations just return rand(3) results (ie: garbage).

What is so bad about rand(3) ? $RANDOM doesn't provide anything beyond rand(),
as you said, it does neither provide crypto strength nor does't it guarantee
any statistical properties.

If you don't want to use an obsolete interface, use random() instead.


-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index