use test-genrandom in tests instead of /dev/urandom
authorNicolas Pitre <redacted>
Wed, 11 Apr 2007 17:35:13 +0000 (13:35 -0400)
committerJunio C Hamano <redacted>
Thu, 12 Apr 2007 02:31:24 +0000 (19:31 -0700)
This way tests are completely deterministic and possibly more portable.

Signed-off-by: Nicolas Pitre <redacted>
t/t5301-sliding-window.sh

index a6dbb04a86c06cabb22810822dd0f079c9268dd7..fce77f1255378b715c23be5978fcc13e56ba263d 100755 (executable)
@@ -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 &&
git clone https://git.99rst.org/PROJECT