Don't call arc4random_stir() explicitly. To quote arc4random(3)

manual page:

    There is no need to call arc4random_stir() before using
    arc4random() functions family, since they automatically
    initialize themselves.

No objection:	des
MFC after:	2 weeks
This commit is contained in:
Xin LI 2013-10-29 17:34:15 +00:00
parent 3ee2d14f66
commit 9da19cd746
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257348

View File

@ -134,12 +134,10 @@ mkfs(struct partition *pp, char *fsys)
*/
disk.d_bsize = sectorsize;
disk.d_ufs = Oflag;
if (Rflag) {
if (Rflag)
utime = 1000000000;
} else {
else
time(&utime);
arc4random_stir();
}
sblock.fs_old_flags = FS_FLAGS_UPDATED;
sblock.fs_flags = 0;
if (Uflag)