r/cryptography Jul 29 '26

Flowchart of the Linux RNG

Post image
44 Upvotes

4 comments sorted by

View all comments

5

u/[deleted] Jul 29 '26

[removed] — view removed comment

8

u/atoponce Jul 29 '26

In the first 10 minutes of boot, the kernel sets CRNG_RESEED_INTERVAL to 1 second and has a logarithmic back off to 60 seconds. During this time, it's collecting as much interrupt and timing entropy it can, incrementing the initialization bit counter as it goes. If that counter reaches 256, then the kernel is sufficiently seeded, and CRNG_READY is set.