Simple hardware RNG

Posted by roygbiv on Stack Overflow See other posts from Stack Overflow or by roygbiv
Published on 2009-07-28T02:13:52Z Indexed on 2010/04/30 0:17 UTC
Read the original article Hit count: 371

I made a tongue-in-cheek comment to this question about making a hardware RNG.

Does anyone know of any simple plans or can anyone descibe a simple hardware based RNG and the software to drive it?

Go to Radio Shack. Buy a diode, an NTR resistor, a capacitor and serial cable. Cut off the end of the serial cable that does not fit on your computer. Solder the diode and resistor in series between pins DTR and DSR of the cable. Solder the capacitor between DSR and TXD pins. Write a small C program to do the following: Set DTR to 1. Start Timer. Monitor DSR until it goes to 1. Stop Timer. Calculate resistance from elapsed time. Retreive serveral bits from that value to use as part of random number. Repeat until enough bits have accumulated.

© Stack Overflow or respective owner

Related posts about Hardware

Related posts about random-number-generator