TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Convert standard Geiger counter to RNG

36 pointsby propmasterover 1 year ago

6 comments

anfractuosityover 1 year ago
<a href="https:&#x2F;&#x2F;www.fourmilab.ch&#x2F;hotbits&#x2F;how3.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.fourmilab.ch&#x2F;hotbits&#x2F;how3.html</a> is one algorithm I&#x27;ve seen before.<p>I&#x27;m just wondering with a very active source with this algorithm, could you potentially get a sequence of 0 - 15 being generated? (I could well be misunderstanding)<p>If a &#x27;pulse&#x27; of activity from the source was detected at each interval
LeoPantheraover 1 year ago
I&#x27;m not a math or a CS expert, but I naively &quot;designed&quot; a PRNG which was simply repeatedly doing hash(random_seed+counter).<p>Obviously you have to keep random_seed secure, and use a hashing algorithm that does not have easy collisions, but other than that, is there any actual downside to this method?
评论 #38255698 未加载
评论 #38255628 未加载
评论 #38255837 未加载
评论 #38256100 未加载
stcredzeroover 1 year ago
Not a crypto expert, but here&#x27;s my understanding of the problem. The system just has to gain bits of entropy from the physical randomness source faster than the hardware and software leaks them. So one could feed the entropy into a stream cipher with the right characteristics.<p>What if one just counted the number of clicks, modulo 2? Then one could take the output of ChaCha20 or Salsa20 stream ciphers and every N outputs of the stream cipher, increment the stream cipher&#x27;s counter bits 0 or 1 times. One would also have to re-key the stream cipher periodically. (Maybe after gathering 128 bits of output from the Geiger counter in another register, then using that.)
评论 #38256343 未加载
评论 #38255700 未加载
gus_massaover 1 year ago
Have you tested how good the random numbers are?<p>I think they should be good, if the interval between clicks is much larger than the interval for the counter, but I may be missing something. Also, some source emit two particles and I don&#x27;t know if there are interesting cascades of decompositions.<p>If two consecutive clicks are close enought, I expect an uneven distribution on increasing secuances like 13478AC023489BC...<p>Also, for very high click rates I expect missing double clicks.
评论 #38254752 未加载
评论 #38261058 未加载
评论 #38254841 未加载
评论 #38255614 未加载
评论 #38254725 未加载
sethaurusover 1 year ago
Slightly off-topic: I’ve been thinking about getting a Geiger counter as a hobbyist toy. Anyone got a recommendation?
评论 #38275327 未加载
filterfiberover 1 year ago
Several of the GQ counters have serial access, does anyone know if you can get the individual events from those?