You can find the original generator at https://github.com/arke-works/arke/blob/master/snowflakes/generator.go