TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Convert standard Geiger counter to RNG

36 点作者 propmaster超过 1 年前

6 条评论

anfractuosity超过 1 年前
<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
LeoPanthera超过 1 年前
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 未加载
stcredzero超过 1 年前
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_massa超过 1 年前
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 未加载
sethaurus超过 1 年前
Slightly off-topic: I’ve been thinking about getting a Geiger counter as a hobbyist toy. Anyone got a recommendation?
评论 #38275327 未加载
filterfiber超过 1 年前
Several of the GQ counters have serial access, does anyone know if you can get the individual events from those?