add u32/u64 typedefs
limit rand64 to 32bits when building on 32bit.

I might later change this to make this function return u64 if necessary,
but for now, the rand64() consumers on 32bit don't care because
they work on ulongs.
Make rand64 return a u64 always, even on 32-bit.