fix issue with crypto.randomBytes