Replace net_random calls with prandom_u32