Skip to content

Commit

Permalink
Use /dev/urandom in test 20
Browse files Browse the repository at this point in the history
The build process hangs for a long time while test 20 reads from /dev/random. On my desktop it eventually completed without error after more than half an hour, on a virtualbox vm it takes even longer. Using /dev/urandom instead prevents this delay.
  • Loading branch information
jcfp committed Aug 6, 2015
1 parent af8943e commit 27723a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test20
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo $dashes
echo $banner
echo $dashes

dd bs=1000 count=2 iflag=fullblock if=/dev/random of=myfile.dat
dd bs=1000 count=2 iflag=fullblock if=/dev/urandom of=myfile.dat

banner="Creating PAR 2.0 recovery data"
dashes=`echo "$banner" | sed s/./-/g`
Expand Down

0 comments on commit 27723a6

Please sign in to comment.