From 9da19cd746250e1605e604a86b624a59fadf5fdf Mon Sep 17 00:00:00 2001 From: Xin LI Date: Tue, 29 Oct 2013 17:34:15 +0000 Subject: [PATCH] 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 --- sbin/newfs/mkfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index a4cfa8dd7591..8bcd56fb39a1 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -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)