Re: Getting boottime early in booting

From: Dag-Erling_Smørgrav <des_at_FreeBSD.org>
Date: Sat, 04 Apr 2026 08:52:23 UTC
Rick Macklem <rick.macklem@gmail.com> writes:
> 1 - I need a value that will be different each time the machine boots.
>      I would normally use getboottime(), but for the NFS root fs mount,
>      it just returns 0.
>      Any ideas w.r.t. something I can acquire early in booting that will
>      change each time the system is booted?

Just use arc4random(9).

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org