make it easier to implement for different platforms.

Starts sequence with rand() so that the start number is not guessable.
Well, as much as rand() is not guessable. Also, make it easier to
implement variants for different platforms.