summaryrefslogtreecommitdiff
path: root/t/t5301-sliding-window.sh
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-04-11 13:35:13 -0400
committerJunio C Hamano <junkio@cox.net>2007-04-11 19:31:24 -0700
commit39551b6926ef869e15af41f4eaa9356da98b2b5e (patch)
tree561cd3ac2a68d731684d71981744e68d42ce86d5 /t/t5301-sliding-window.sh
parent2dca1af44806924946828e2fdc82ea408353d286 (diff)
downloadgit-39551b6926ef869e15af41f4eaa9356da98b2b5e.tar.gz
use test-genrandom in tests instead of /dev/urandom
This way tests are completely deterministic and possibly more portable. Signed-off-by: Nicolas Pitre <nico@cam.org>
Diffstat (limited to 't/t5301-sliding-window.sh')
-rwxr-xr-xt/t5301-sliding-window.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5301-sliding-window.sh b/t/t5301-sliding-window.sh
index a6dbb04a86..fce77f1255 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 &&