Only try to use crypto.randomBytes if env is node