Random Number Generators implemented for gaming developers.
So many gamers and developers and so few ways to introduce entropy in a game environment. Many may hear terms like TRNG, PRNG, PRF and wonder what people are discussing.
A TRNG or true random number generator comes from a physical environment that doesn’t have a steady source nor a constant identifiable source, (eg.) a mouse and or (several types of I/O operations –take your pick) these operations generate the small numbered values that some of us are familiar with after we have generated a gpg key.
PRNG pseudo random number generator uses a “seed’ as its input, it produces a continuous stream of data that consists of random bits.
A PSF pseudo random function is exactly the same as the PRNG with one exception – it’s (based on a deterministic algorithm + a seed) deterministic algorithm means “given a particular input you can expect the same output each time.
A.) PRNG (seed = deterministic algorithm Pseudo random bit-stream (loop) )
B.) PRF ( seed = specific values = pseudorandom value (loop) )
C.) TRNG (Source = binary conversion = random it stream (no loop) )
D.) HRNG (Source = random bit stream = seed (loop) )
Attached is a small outline on how to make your own HRNG, won’t go into too much detail as if you must start from the beginning you’ll need to do some research. The following description of parts may vary – as long as you’re building the item you’ll figure it out
credit for schematic goes to Jerry Hall on Usenix #[email protected]
It pays to remember that anything with a USB attached has to be dealt with in Linux with a rule. It must go between the GPU and USB in order to maximize efficiency, simply issue a lsusb -v to view the Gaming’s Computers USB ports.
The Vex HRNG
1 – 1 meter 6 pin testing cord, you’ll need a program like ccload to test the software (not included)
3- 2N3904 Transistors (Texas Instruments)
1- Vex Board Game Counter with above parts (no test cord) $15.78 USD Vex
10 – 180 Ω Resistors (Texas Instruments)
10 -18 kΩ Resistor (Texas Instruments)
10 – 555 (Texas Instruments)
3- SOT-23 AnyCAP Low dropout regulator (Texas Instruments)
2- ADP3330 6 pin lead (Texas Instruments)
2- 0.01 µf Capacitor Texas Instruments
1- 9 volt battery or 2 -9 volts (plan on reducing if 2)
Water and rag
Needle Nose pliers to clip resistors with.
Thank you for your time. Enjoy coding!