rand: fix truncated rand_seed on Windows

The long data type is 32-bit on LLP64 platforms
11 files changed