Re: Random Number Generation -----> Hardware or Software?

From: Gavin Scott (gavin_at_allegro.com)
Date: 03/15/05


Date: Tue, 15 Mar 2005 00:32:45 -0000

In comp.arch Robert A Duff <bobduff@shell01.theworld.com> wrote:
> Ada has some requirements on the built-in (pseudo) random number
> generators. See:

> http://www.adaic.org/standards/95aarm/html/AA-G-2-5.html

> I don't really understand this stuff. Does it result in "terrible",
> as you say, output?

Nice short summary of Knuth's tests for randomness in there.

But it only requires a period of 2^31-1, which certainly isn't useful
for security applications (given a very small number of sequential
outputs from such a generator you can predict the next value to be
generated with fairly high probability etc.).

Looks like a nice formal requirement that the PRNG at least not be
abysmally bad :-)

But those requirements still don't get you a PRNG that you'd want to
use for any serious application I think.

Offhand I don't recall whether the simple linear congruential generators
can be constructed to pass Knuth's tests or not (Knuth probably says).

G.



Relevant Pages

  • Re: Dynamic Hill cipher
    ... generators. ... For a linear PRNG with known coefficients, you get a system of linear ... The problem with such designs is as always: Designing a cipher is very ...
    (sci.crypt)
  • Re: numpy performance and random numbers
    ... a PRNG that have extremely high period like Mersenne Twister and puts ... Except there is no way to find two very distant states and prove they ... random generators - at least it is not obvious to me. ...
    (comp.lang.python)
  • Re: Pseudo Random Number Generator test results
    ... When I ran the PRNG that I was using through Diehard it is clearly not ... dup MyRandom! ... These type of random generators can be acceptable. ... For tForth Marcel Hendrix came up with a reference ...
    (comp.lang.forth)
  • Re: random_number
    ... The modern long period PRNGs have rather high order recurrences and rather large number of words of internal state. ... The quick and dirty is that the period length matches the seed size and can be much larger than the reported out value as shown by the multiple word seeds of the long period generators. ... So the classical order one PRNG is exactly uniform and can be pretty good up to six or so dimensions. ...
    (comp.lang.fortran)
  • Re: the "hat" container class [C++]
    ... >> generators, however sophisticated. ... > possible sequences" suggest that perhaps the stones are not yours to ... the best any PRNG can do is generate as many sequences as ... A quick Google search shows that, by default, Mathematica seeds its ...
    (comp.programming)