Replace random with urandom