<div dir="ltr">(curse you anti-gmail-top-posting zealots...)<div class="gmail_extra"><br></div><div class="gmail_extra">On Wed, Sep 11, 2013 at 3:47 PM, Dave Horsfall <span dir="ltr"><<a href="mailto:dave@horsfall.org" target="_blank">dave@horsfall.org</a>></span> wrote:<br>

<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Another whacky idea...<br>
<br>
Given that there is One True Source of randomness to wit radioactive<br>
emission, has anyone considered playing with old smoke detectors?</blockquote><div><br></div><div>Yep. For fun I wrote a custom firmware for the Sparkfun Geiger counter to do random bit or byte generation that I could mix into my system's entropy pool. I'll eventually update the code to also work with the ExcelPhysics APOC.</div>

<div><br></div><div>acknowledging some prior art: <a href="http://www.fourmilab.ch/hotbits/" rel="noreferrer">http://www.fourmilab.ch/hotbits/</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


The ionising types are being phased out in favour of optical (at least in<br>
Australia) so there must be heaps of them lying around.<br></blockquote><div><br></div><div>There are heaps of them at big-box retailers in the US, with no sign of going away. I got a couple for $5 each.</div><div> </div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I know - legislative requirements, HAZMAT etc, but it ought to make for a<br>
good thought experiment.<br></blockquote><div></div></div><div class="gmail_extra"><br></div>Low activity sources seem to be fairly unencumbered. There are plenty of places that will sell calibrated test sources or lumps of random ore for educational use. Then you get to tell people funny stories about the time you bought radioactive material on the internet, and someone else gets to do the compliance paperwork (if necessary).</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><div>Homebrew geiger counter rigs aren't exactly practical or scalable - I don't want to make my datacenter guys cut open a case of smoke detectors and solder a dozen GM tubes so we can have good random numbers. A better solution might be to use one of the various thumb-drive sized AVR-USB boards: load in a simple firmware to emulate a serial port, and emit samples from the onboard ADCs and RC oscillators... no soldering required.</div>

<div><br></div><div>I was going to say that it's simple to inspect the code - even the generated assembly or the raw hex - for undesired behavior, then I remembered the USB side is non-trivial. If you're not using the onboard USB hardware it's much easier to verify that you're only doing an ADC sample, a timer read, a couple of comparisons, a UART write, and nothing else (assuming you offload the whitening to your host's entropy pool).</div>

<div><br></div>-- <br>GDB has a 'break' feature; why doesn't it have 'fix' too?
</div></div>