*generator v2 (must work on 32bit systems)