If you don't want to use /dev/random or EGD, you are going to have to emulate their functionality yourself using some other source of 'truly' random source data - perhaps the timing of network requests, or keystrokes (but realize that each of these things is far from totally random and account for it - for example, instead of storing the raw data, calculate a profile of 'typical' data, and generate your randomness from moment-by-moment variation from that profile). Something has to come from the non-deterministic land of humans to make randomness possible in the deterministic land of machines. A major reason to use digital computers in the first place is to eliminate random variation in functional output from circuit noise and that kind of thing. When randomness does affect the operations of a computer outside the context of an EGD/dev/random type mechanism, that machine is broken.

Find variance in nature and bring it into your computer. Emulate the interface to /dev/random or EGD. Then, use the accepted (and already written) secure algorithms in CPAN that rightfully require this functionality.

- paul

"A fool and his freedom are soon parted"
-RMS


In reply to Re: Cryptographically Secure Psuedorandom Number Genergator - PRNG? by dynamo
in thread Cryptographically Secure Psuedorandom Number Genergator - PRNG? by radiantmatrix

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.