use unixnano for random