Note reference for MS's LCG
Optimize a bit
Take a command-line argument for the key