From: semarie Date: Wed, 14 Oct 2015 13:22:56 +0000 (+0000) Subject: unbreak regress/sbin/newfs X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=614c08a2ffcd18034ea4a6bb1448d962969a4199;p=openbsd unbreak regress/sbin/newfs /dev/prandom is no more since Nov 30, 2008 OK otto@ --- 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