From: Nicolas Pitre Date: Wed, 11 Apr 2007 17:35:13 +0000 (-0400) Subject: use test-genrandom in tests instead of /dev/urandom X-Git-Tag: v1.5.2-rc0~20^2~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=39551b6926ef869e15af41f4eaa9356da98b2b5e;p=git.git use test-genrandom in tests instead of /dev/urandom This way tests are completely deterministic and possibly more portable. Signed-off-by: Nicolas Pitre --- diff --git a/t/t5301-sliding-window.sh b/t/t5301-sliding-window.sh index a6dbb04a8..fce77f125 100755 --- a/t/t5301-sliding-window.sh +++ b/t/t5301-sliding-window.sh @@ -12,7 +12,7 @@ test_expect_success \ for i in a b c do echo $i >$i && - dd if=/dev/urandom bs=32k count=1 >>$i && + test-genrandom "$i" 32768 >>$i && git-update-index --add $i || return 1 done && echo d >d && cat c >>d && git-update-index --add d &&