From 8d47955f2179652405fb66d1978831eddd7a07cd Mon Sep 17 00:00:00 2001 From: delphij Date: Tue, 29 Oct 2013 17:34:15 +0000 Subject: 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 a4cfa8d..8bcd56f 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) -- cgit v1.1