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:
parent
7e627fb53a
commit
b01a057461
1 changed files with 1 additions and 1 deletions
|
@ -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} )));
|
||||
|
||||
|
|
Loading…
Reference in a new issue