Article View: comp.arch
Article #12745Re: random number generator in hardware
From: Alexander Dupuy
Date: Mon, 24 Nov 1986 18:33
Date: Mon, 24 Nov 1986 18:33
48 lines
2097 bytes
2097 bytes
henry@utzoo.UUCP (Henry Spencer) replies to an earlier post:
>
> > How about taking the exclusive-or of several such random bit generators?
> > This converges exponentially toward probability 1/2 as the number of
> > bits xor'ed increases.
>
>Only if the generators drift independently, which in general they won't:
>things like temperature and aging effects will be similar for all.
Actually, the xor scheme works best if the generators all drift in the same
direction. Taking four generators which have drifted to 75% ones and 25%
zeros, and hooking them up in a two-level xor tree gives you the following
probability table:
f(a,b,c,d) = (a^b)^(c^d)
a b c d (a^b)^(c^d) Prob (256ths)
---------- ----------- -------------
1 1 1 1 0 81
1 1 1 0 1 27
1 1 0 1 1 27
1 1 0 0 0 9
1 0 1 1 1 27
1 0 1 0 0 9
1 0 0 1 0 9
1 0 0 0 1 3
0 1 1 1 1 27
0 1 1 0 0 9
0 1 0 1 0 9
0 1 0 0 1 3
0 0 1 1 0 9
0 0 1 0 1 3
0 0 0 1 1 3
0 0 0 0 0 1
-----------
136 120
53% 47%
3% drift is not bad considering the generators are each 25% off.
This works well for odd as well as even numbers of generators. This
setup is vulnerable to drift if generator pairs drift in _opposite_
directions, but with careful design, the factors you mention will tend
to prevent this.
@alex
----
arpa: dupuy@columbia.edu
uucp: ...!seismo!columbia!dupuy
Technical Details
Message-ID:
<3915@columbia.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!amsterdam.columbia.edu!dupuyReferences:
<317@zuring.mcvax.UUCP> <267@bath63.UUCP> <7334@utzoo.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!amsterdam.columbia.edu!dupuy From: dupuy@amsterdam.columbia.edu (Alexander Dupuy) Newsgroups: comp.arch Subject: Re: random number generator in hardware Message-ID: <3915@columbia.UUCP> Date: Mon, 24-Nov-86 13:33:25 EST Article-I.D.: columbia.3915 Posted: Mon Nov 24 13:33:25 1986 Date-Received: Mon, 24-Nov-86 23:28:53 EST References: <317@zuring.mcvax.UUCP> <267@bath63.UUCP> <7334@utzoo.UUCP> Sender: nobody@columbia.UUCP Reply-To: dupuy@amsterdam.columbia.edu (Alexander Dupuy) Organization: Columbia University CS Department Lines: 48