Comment on Linux RNG RFC Patch: implement getrandom() in vDSOComments−10000truths4yWhy not just have the kernel map a page containing random bytes, that it rewrites with newly seeded random bytes when needed? Then userspace CSPRNGs could use that as a basis for their own reseeding.−quesomaster90004yHow often do you reseed?How frequently does the kernel populate these pages with new entropy (for every process, pre-emptively?)Does this avoid pagefaults or other process interrupts? Don't want process interrupting every time it accesses the 'magic page of random'.Surely these are all pain points that Intel's `RDRAND` is supposed to alleviate.
Comments
Why not just have the kernel map a page containing random bytes, that it rewrites with newly seeded random bytes when needed? Then userspace CSPRNGs could use that as a basis for their own reseeding.
How often do you reseed?
How frequently does the kernel populate these pages with new entropy (for every process, pre-emptively?)
Does this avoid pagefaults or other process interrupts? Don't want process interrupting every time it accesses the 'magic page of random'.
Surely these are all pain points that Intel's `RDRAND` is supposed to alleviate.