generateRandom assers
Fix MacOs build