Use Microsoft's rand() function

This makes it work!  Which is impressive because I didn't even look at
the disassembly of their tool.  I simply wrote the most brain-dead key
generation function I could think of and hoped that they did it in a
similarly "obvious" way.
Only check the character set ordering they use