[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rand("state")
From: |
Francesco Potorti` |
Subject: |
Re: rand("state") |
Date: |
Fri, 17 Feb 2006 16:12:32 +0100 |
>If the use of /dev/random or /dev/urandom can produce all 19968 bits (624
>32-bit integers) plus one integer in the range from 1 to 624, and these
>are truly random and not limited by the time when they were recorded, then
>I'm sure you are right. But if the seed from /dev/urandom is only a
>32-bit seed, there can be collisions.
Consecutive seeds do not produce consecutive random sequences, so I
don't think that the probability of a collision increases if you choose
the initial state from a 2^32 sample rather than a 2^32^625 one.
Sure, if you want to be on the safe side, you will use a 625-integers
array chosen from a uniform distribution. But I see no reason to think
that choosing it from a much smaller sample would cause any real
difference.
Maybe someone on this list knows of studies on this topic?
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 313 8091
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
Web: http://fly.isti.cnr.it/ Key: fly.isti.cnr.it/public.key
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Re: rand("state"), (continued)
- Re: rand("state"), Francesco Potorti`, 2006/02/16
- Re: rand("state"), Mike Miller, 2006/02/16
- Re: rand("state"), Francesco Potorti`, 2006/02/16
- Re: rand("state"), Mike Miller, 2006/02/16
- Re: rand("state"), Francesco Potorti`, 2006/02/16
- Re: rand("state"), Michael Creel, 2006/02/17
- Re: rand("state"), Francesco Potorti`, 2006/02/17
- Re: rand("state"), Mike Miller, 2006/02/17
- Re: rand("state"),
Francesco Potorti` <=
- Re: rand("state"), Mike Miller, 2006/02/17
- Re: rand("state"), Francesco Potorti`, 2006/02/17