1
0
Fork 0
mirror of https://github.com/sbrl/bin.git synced 2018-01-10 21:33:46 +00:00

quote-get: Fix bug that caused it to output the same quote all the time

This commit is contained in:
Starbeamrainbowlabs 2017-10-23 21:53:17 +01:00
parent 7e627fb53a
commit b01a057461

View file

@ -43,7 +43,7 @@ fi
quote_count=$(cat "${quotes_cache_file}" | wc -l);
# Set the random number generator seed to ensure we give the same quote on a per-day basis
RANDOM=$(date +%Y-%m-%d);
RANDOM=$(date +%Y%m%d);
quote_line=$((( $RANDOM % ${quote_count} )));