Uid generator