Seed plat_rand_s with dev/urandom, add tid and usec to tmpfname.