]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fsx: seed more randomly with the -S0 option
authorasomers <asomers@FreeBSD.org>
Sun, 28 Apr 2019 17:27:06 +0000 (17:27 +0000)
committerasomers <asomers@FreeBSD.org>
Sun, 28 Apr 2019 17:27:06 +0000 (17:27 +0000)
commitb4b01d25ea23e879ce5fff1341ebdab94f66165e
treed006a89f0e24a2a22af505b5f4985ad51a618625
parent46dc390e0e678bd7685e58524ef8f600c1c684c4
fsx: seed more randomly with the -S0 option

When using -S0, seed the PRNG with the current time in nanoseconds, not
seconds, so consecutive runs don't accidentally use the same seed.

Also, rename some variables for clarity.

Reviewed by: ngie
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D20078
tools/regression/fsx/fsx.c