rt: fix memory-unsafe random seed logic, r=valgrindclean