1
0
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:
Andrey A. Chernov 1997-06-14 00:17:53 +00:00
parent 96c31b2618
commit 545cda7db5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26625
2 changed files with 2 additions and 4 deletions

View File

@ -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) {

View File

@ -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) {