Hacker News new | ask | show | jobs
by frabjoused 1628 days ago
The eligible word list is an array of 5 char words embedded in the script. After digging a bit it looks like it gets the word like this (pseudocode):

dayOffset = floor((today - 19 April 2021) / 864e5)

index = dayOffset % wordList.length

wordOfTheDay = wordList[index]

edit: It's literally just picking the next item in the array in sequence.