Id generator based on Twitter's Snowflake