Use arc4random if it's available.
Using (long long) shuts GCC on Linux up.

Whoever defined time_t so vaguely should be embarrassed. It's a portability
nightmare.