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.

Random number generator enhancements for Linux 5.17 and 5.18

242 pointsby CyberRabbiabout 3 years ago

14 comments

dataflowabout 3 years ago
In case anyone&#x27;s interested in how Windows behaves for the sake of comparison, see: <a href="https:&#x2F;&#x2F;aka.ms&#x2F;win10rng" rel="nofollow">https:&#x2F;&#x2F;aka.ms&#x2F;win10rng</a>
评论 #30721634 未加载
评论 #30722147 未加载
OscarCunninghamabout 3 years ago
I know it&#x27;s an HN cliche to talk about the website instead of the content, but I really like the LaTeX look and I want to know how it was done.
评论 #30720394 未加载
评论 #30722795 未加载
评论 #30720308 未加载
评论 #30720322 未加载
评论 #30721130 未加载
评论 #30721195 未加载
评论 #30720359 未加载
creatonezabout 3 years ago
&#x2F;dev&#x2F;urandom and &#x2F;dev&#x2F;random interfaces present the exact same interface -- The &quot;Jiggle your mouse to generate encryption key&quot; ridiculousness is now a thing of the past!
评论 #30721948 未加载
gillesjacobsabout 3 years ago
Great to see as much thought is put in infrastructure as in the improved cryptographic logic. They removed the &#x2F;dev&#x2F;urandom and the virtual machine cloned entropy that cause unsafe randomness.<p>Alongside BLAKE2 algorithmic improvements, we also get safer infrastructure. Very cool!
mcpherrinmabout 3 years ago
The jitter dance mentioned in here is pretty interesting. It doesn&#x27;t seem obvious to me that a deterministic CPU running a deterministic scheduler is going to yield randomness.<p>But hopefully any modern system has some kind of hardware RNG and the &quot;jitter dance&quot; is just a last-resort type thing for strange systems.
评论 #30725185 未加载
评论 #30725380 未加载
评论 #30726212 未加载
chocologicalabout 3 years ago
The &quot;Linus Jitter Dance&quot; mentioned in the article is similar to Havaged, you can read more about it here: <a href="http:&#x2F;&#x2F;www.irisa.fr&#x2F;caps&#x2F;projects&#x2F;hipsor&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.irisa.fr&#x2F;caps&#x2F;projects&#x2F;hipsor&#x2F;</a><p>I recall using Haveged to prevent RNG from blocking on machines without hwrng (i.e. VMs) on old kernels.
lizardactivistabout 3 years ago
Looking through the code, and am surprised to see just how much it takes to provide a secure source of RNG in an operating system.
loegabout 3 years ago
It&#x27;s great to see Linux adopting VMgenid. RDSEED over RDRAND when available also makes sense.<p>&gt; In the per-cpu extension of that design, all entropy is extracted to a “base” crng. Then, each time a per-cpu crng is used, it makes sure that it is up to date with the latest entropy in the base crng. If it is, then it continues on doing fast key erasure with its own key. If it isn’t, then it does fast key erasure with the base crng’s key in order to derive its new one.<p>Beautiful. This is essentially the same thing the Windows 10 design does in the kernel.
samgranieriabout 3 years ago
Jason, I&#x27;m very happy to see you contributing excellent work to the Linux kernel. Keep up the good work!
exfilabout 3 years ago
What would be best way to evaluate randomness quality? This is something I&#x27;ve been thinking a lot. Yes, there are &#x27;ent&#x27; and others, but I am more after trend of randomness quality over weeks and months.
评论 #30724459 未加载
评论 #30725994 未加载
oofbeyabout 3 years ago
I love taking these deep tech dives to appreciate how much thought and complexity goes into something seemingly as simple as random numbers. I know they&#x27;re critically important for security - which truly is high stakes - so I&#x27;m not surprised. But it&#x27;s fun and impressive nonetheless.
Zamicolabout 3 years ago
Fantastic article. You&#x27;re a great writer and I learned a lot. Thank you.
slk500about 3 years ago
font on the page is awful
corvettez0606about 3 years ago
With these kind of changes I always wonder if they make the product more secure or less secure.
评论 #30720147 未加载
评论 #30720304 未加载
评论 #30723195 未加载