Simplify uid generation