add mac random hashing