Help me build a random bit generator

Status
Not open for further replies.

bassem11

Junior Member level 3
Joined
Mar 21, 2004
Messages
25
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Activity points
199
random bit genrater

i am looking to desing a hardwear random bit genrater am i am not looking to find somethink in the intrnet i want to make profishanl circuit that it is givin me a tru random bits
so can i have advise

and pleas any sujsting in the desinging
 

Re: random bit genrater

id look up linear feedback shift register. then you still need to feed it an input that has some randomness; remember that there is no true random number generation in hardware only; you need to influence it with some sort of outside random stimuli (light, sound, etc.)
 

Re: random bit genrater

Humm, in fact, there are true hardware random bits generators.

There are two kinds of random bits generators.

The first one is the 'pseudo-random', which are simple, and use a series of flip-flop with an XOR gate. This one, while not being random at all (the result is predictable) is often used for tests or scrambling purpose. For example, when you wish to test a transmission system, and wish to feed a signal that 'look like' it's random data, it is very usefull. Also, when you have a system where you wish to insure an evenly distributed numbers of ones and zeros, you could xor the bitstream with the output of the generator. At the other end, you xor again to get the original bitstream. Usefull for example if you have a long series of zeros and you must insure that a certain amout of '1' will be present in the transmission.

The second random generator is a true random generator. In fact, this is so true that it's one of the only hardware trusted by military applications or applications needing a real high-security level. It's based on a semiconductor (usually a diode or a transistor). This is based on the principle that if you look at a diode, and you apply a voltage to it, you will see a bit of noise. If you were to take an scope, and put a voltage across a diode for example, especially near the reverse breakdown voltage (for example, near the rated voltage for zener diodes), you would see some noise. That noise may be of a few millivolts. And this noise IS truely random. That noise come in the first place due to the fact that as soon as the temperature raise above the absolute zero (0 kelvin, which is about -273.16 celcius, and which have the same scale as celcius), the electrons will start to 'shake'. This electrons vibrations will cause that noise. The higher the temperature, the higher the noise. The noise level can be calculated as a function of the temperature and bandwidth. The wider the bandwidth, the higher the noise. This is why some hyper-sensible receivers, like radio-telescopes, use a LNA (low-noise amplifier) and LNB at very low temperatures, to be less flooded by local termal noise.

So, the way it work is that it sample a voltage and depending on the voltage level, the device will output a 1 or 0. This stream of 1 and 0, again, IS truely random.

For the fun of it, here is the formula to calculate the noise level in Watt:

P = kT<delta>f.
P is the power in Watt
k is Boltzmann's constant in joules per kelvin
T is the conductor temperature in kelvins
<delta>f is the bandwidth in hertz.

Boltzmann's constant (k): The number that relates the average energy of a molecule to its absolute temperature. Note: Boltzmann's constant is approximately 1.38 × 10^-23 J/K (joules/kelvin).

Ex: you have an amplifier, which amplify frequency from 2GHz to 2.5GHz. You then, design a filter to keep just this 500MHz bandwidth. The amplifier is at room temperature, let's say 25C (you could convert F to C too). This give 298.16 kelvins.

So, the power P is
P = (1.38 × 10-23 Joules/Kelvins) * (298.16 kelvins) * (500 000 000 Hz)
P = 0.000000000002057304 Watt
P = -117dB

Take that on a scope, across a diode. Let's say our oscilloscope probe have a 1Megaohm input. Let's saw our scope have a 500MHz bandwidth, and we are at room temperature. We then get the same formula as above. From the ohm law, we have this formula:

P = V^2 / R (Power equals Voltage squared, divided by the resistance).

So

P = V^2 / 1 000 000 ohm
0.000000000002057304 Watt * 1 000 000 ohm = V^2
0.000002057304 Watt ohm = V^2
square root(0.000002057304 Watt ohm) = Voltage
Voltage = 0.00143 V
Voltage = 1.43mV (which can be seen as noise on the scope).

Big Boy
 

Re: random bit genrater

Dear

can you advise me with will working circuit and give me all the dtales about working big boy pleas
 

random bit genrater

hi .. see some links with practical designs and theory

regards

cancel

hxxp://www.gap-optique.unige.ch/prototypes/QRNG/
hxxp://willware.net:8080/hw-rng.html
hxxp://www.cryogenius.com/hardware/rng/
hxxp://www.robertnz.net/hwrng.htm
hxxp://www1.kielnet.net/home/julien.thomas/tech/rand/rand.htm
hxxp://www.ciphersbyritter.com/NOISE/NOISRC.HTM
hxxp://mandala.co.uk/links/random/
hxxp://www.protego.se/sg100_en.htm
 

Re: random bit genrater

can you advise me with will working circuit and give me all the dtales about working big boy pleas

Humm, well, I didn't really study actual hardware random generator. I heared about it and it's theory, that's about all. And, ehhh, yes, I do remember a time when I was doing a lab at college (where we had scopes), to see the actual noise across a zener diode. With a spectrum analyser, we could see the noise across the whole frequency spectrum. The noise was much more acute near the zener voltage threshold point.

I know that commercial products are available (from who???, where???).

I didn't either tried to create my own bit generator You should start by looking the links above in cancel's reply.

Good luck

Big Boy
 

Re: random bit genrater

Dear
still am facing some problem with the desing if hardwear random so any sujesting for any circiut
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…