for what it is worth, i agree with part of John M. Dlugosz's suggestion: not necessarily via the perl kernel, but certainly via a standard module which can be used to collect entropy in a platform independent manner.

it is surprisingly difficult to find libraries that do this. i tried yarrow, which has a good entropy collector, and good documentation, from which i intended to parrot unmercifully, but the entropy collecting source given is windows-specific. and /dev/random is great if you have a linux box, but obviously not otherwise.

re: math::trulyrandom, the readme itself says, in a rather plaintive & guilty tone, something like "statistical tests should be performed on the output, but the slowness of the module is problematic". i find it hard to believe that statistical tests are absent, given how easy it is to actually perform the tests with something like ent. and besides, it works just for unixen.

i find myself again bemoaning the fact that it is quite hard to find truly cross platform cryptographic code in perl. so yes, give us a cross-platform entropy source. please! just don't put it in the kernel.

ttfn,

wufnik

...in the world of the mules there are no rules

In reply to Re: Cryptographic Random Numbers by wufnik
in thread Cryptographic Random Numbers by John M. Dlugosz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.