1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

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} )));