ID generator like the SnowFlake that implemented by pure ruby.