based on snowflake to generate uuid using c++ language