mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-06 18:29:47 +00:00
Remove srandomdev fallback
This commit is contained in:
parent
96c31b2618
commit
545cda7db5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26625
@ -84,8 +84,7 @@ main(argc, argv)
|
||||
if (argc - optind < 1)
|
||||
usage(1);
|
||||
|
||||
if (srandomdev() < 0)
|
||||
srandom(time(NULL) ^ getpid());
|
||||
srandomdev();
|
||||
|
||||
/* Increase our data size to the max */
|
||||
if (getrlimit(RLIMIT_DATA, &rl) == 0) {
|
||||
|
@ -154,8 +154,7 @@ mkfs(pp, fsys, fi, fo)
|
||||
#ifdef FSIRAND
|
||||
if (!randinit) {
|
||||
randinit = 1;
|
||||
if (srandomdev() < 0)
|
||||
srandom(utime ^ getpid());
|
||||
srandomdev();
|
||||
}
|
||||
#endif
|
||||
if (mfs) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user