Improve a bit the word selection algorithm

main
kirbylife 2023-10-08 22:29:16 -06:00
parent 0d282bf046
commit 198780ab93
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ pub fn get_word_of_the_day() -> String {
let year = date.year() as usize;
let month = date.month() as usize;
let day = date.day() as usize;
let index = year + month + day;
let index = year + month * day;
WORDS[index % WORDS.len()].clone()
}