From 614c08a2ffcd18034ea4a6bb1448d962969a4199 Mon Sep 17 00:00:00 2001 From: semarie Date: Wed, 14 Oct 2015 13:22:56 +0000 Subject: [PATCH] unbreak regress/sbin/newfs /dev/prandom is no more since Nov 30, 2008 OK otto@ --- regress/sbin/newfs/checknewfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/sbin/newfs/checknewfs b/regress/sbin/newfs/checknewfs index c659905c156..99aff12689b 100644 --- a/regress/sbin/newfs/checknewfs +++ b/regress/sbin/newfs/checknewfs @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: checknewfs,v 1.4 2011/04/18 16:52:11 thib Exp $ +# $OpenBSD: checknewfs,v 1.5 2015/10/14 13:22:56 semarie Exp $ # Written by Otto Moerbeek, 2007, Public domain @@ -12,7 +12,7 @@ trap 'cleanup' INT dotest() { image=$(mktemp -t imageXXXXXXXXXX); - dd if=/dev/prandom of=$image bs=512 count=$1 2>/dev/null && + dd if=/dev/random of=$image bs=512 count=$1 2>/dev/null && vnconfig vnd0 $image && disklabel -w vnd0 $2 && newfs $3 /dev/rvnd0a -- 2.20.1