Page MenuHomeFreeBSD

random(4): Add is_random_seeded(9) KPI

Authored by cem on Apr 16 2019, 4:24 PM.



The imagined use is for early boot consumers of random to be able to make
decisions based on whether random is available yet or not. One such
consumer seems to be __stack_chk_init(), which runs immediately after random
is initialized. A follow-up patch will attempt to address that.

Test Plan

If expediency is possible, I would appreciate it.

Tinderbox seems happy with the functional changes.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

cem created this revision.Apr 16 2019, 4:24 PM
cem planned changes to this revision.Apr 16 2019, 4:34 PM

Ah, this deserves a manual page link to random.9 and random.9 update.

delphij accepted this revision.Apr 16 2019, 4:35 PM
cem edited the test plan for this revision. (Show Details)Apr 16 2019, 4:51 PM
cem updated this revision to Diff 56257.Apr 16 2019, 5:10 PM

document in random.9 and add link

This revision was not accepted when it landed; it landed in state Needs Review.Apr 16 2019, 5:12 PM
This revision was automatically updated to reflect the committed changes.