News for hackers. Stuff that matters.
Re:A true random number generator based on bananas radioacti... by rruark on Thursday June 09, 2022 @12:05PM (#31682932)
Using multiple events for a single bit seemed pretty inefficient to me when I built a random number generator based on radioactive decay [0].

I ended up toggling a bit every time an ADC was sampled. When an event was detected (rising edge triggered with hysteresis), the bit associated with the rising edge sample becomes the output random bit. I think this is acceptable as long as the ADC sampling rate is >> the expected event rate, but I haven't done the analysis to prove this to be the case. The result is one random bit per event (unless events pile up in which case only the first event counts).

[Edit] It looks like the author did the same thing per their comment!

[0] http://robruark.com/projects/random/random.html

There are no comments on this comment yet.