Hardened id generator