Integrity checking addition

Style issue: no space after `randomBytes`