summaryrefslogtreecommitdiff
path: root/test/test_flac.sh
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2013-04-25 12:31:50 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2013-04-25 12:31:58 +1000
commit4f24161246f986453034d779e9ddaa1be9b5d336 (patch)
treed37bccebb0246b2ce88eeb0297630799fb8f4b7b /test/test_flac.sh
parentcc9f39216639f91c2f1cd800407fce91e4f49522 (diff)
downloadflac-4f24161246f986453034d779e9ddaa1be9b5d336.tar.gz
Replace usage of $RANDOM in test scripts.
$RANDOM seems to be a bashism and isn't avaiable in eg dash.
Diffstat (limited to 'test/test_flac.sh')
-rwxr-xr-xtest/test_flac.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_flac.sh b/test/test_flac.sh
index 9374a650..57827201 100755
--- a/test/test_flac.sh
+++ b/test/test_flac.sh
@@ -52,7 +52,7 @@ LD_LIBRARY_PATH=`pwd`/../src/share/utf8/.libs:$LD_LIBRARY_PATH
LD_LIBRARY_PATH=`pwd`/../objs/$BUILD/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
export MALLOC_CHECK_=3
-export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
+export MALLOC_PERTURB_=$((1$(date +%N) % 255 + 1))
PATH=`pwd`/../src/flac:$PATH
PATH=`pwd`/../src/metaflac:$PATH
PATH=`pwd`/../src/test_streams:$PATH