CVSROOT:        /cvs
Module name:    src
Changes by:     k...@cvs.openbsd.org    2025/05/18 03:54:48

Modified files:
        etc            : rc 
        distrib/miniroot: install.sub 

Log message:
unify random seeding

The installer has feed_random() and store_random(), rc(8) has random_seed().

Call both store_random() and use the same wording to match, use variables
for brevity and convey intended file usage.

Replace the absoloute octal mode for chmod(8) with a symbolic (relative) one
to explicitly show that this is where userland strips the sticky bit set by
the bootloader:  if set, seeds are skipped with

NOTE: random seed is being reused.

(Only with root outside of softraid, where bootloaders cannot write.)

Always call the function on shutdown and silence just stderr (stdout already
is quiet) instead of doing a preemptive append for brevity:  see rc r1.437.

Feedback OK deraadt

Reply via email to