Re: Getting boottime early in booting

Dag-Erling Smørgrav <[email protected]>
Newsgroups gmane.os.freebsd.current
Message-ID <[email protected]>
Rick Macklem <[email protected]> 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 - [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.