RNDTEST(4)
π RNDTEST(4) β the FIPS 140-2 random number generator test monitor, bestie edition π²β¨
okay so real talk, this is a page from the Kernel Interfaces Manual, and it's about rndtest(4) β yes that's a section 4 device driver page, we love a kernel-adjacent icon π
πΈ NAME πΈ
rndtest β the FIPS 140-2 random number generator test monitor. it literally sits there vibe-checking your randomness. no cap. π
β¨ SYNOPSIS β¨
device rndtest
that's it. that's the whole line. iconic minimalism fr fr π
π¦ DESCRIPTION π¦
so the rndtest driver literally "hooks up" to hardware crypto devices to monitor the entropy data that gets passed to the random(4) subsystem. it's giving backstage-pass energy β it's not making the randomness, it's supervising it π
this data gets periodically tested for FIPS 140-2 compliance, and statistics are collected while it happens. we love a driver that takes notes πβ¨
and here's the important part, pay attention bestie:
if the harvested entropy fails any of the FIPS test suite, it gets discarded π and testing is continuously applied until "good data" is received from the device. like, it will keep checking. it will not let it slide. main character energy but make it rigorous π₯
failures are optionally reported on the console β so you might get a lil heads up, you might not. π
π«Ά SEE ALSO π«Ά
go read those too, i'm literally begging you, they're all connected π§π
π HISTORY π
the idea for this β and the original code β came from Jason L. Wright π«‘ legend behavior.
the rndtest device driver first appeared in FreeBSD 5.0. throwback era fr fr π°οΈ
π BUGS π
okay so the messy part, ngl:
- crypto device drivers must be compiled specially to make use of this driver. yeah. and the manpage itself says this should not be necessary. so it's a whole thing π
- the page also notes this feature might better be integrated into the
random(4)subsystem, where it could be applied to devices that claim to supply "pure entropy". so likeβ¦ that's the dream. that's the vision. we're not there yet π
not a bug per se, more of a "girl, why" β but it's documented, and we respect the transparency β¨
and that's the whole page!! stay random, stay FIPS-compliant, and remember: this one's from the Debian build of the manual, dated May 11, 2020 β mwah, love u, bye πππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2003 Sam Leffler, Errno Consulting
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms