added randomBytes