This is the source code of my consistent hash.
this is a Microsoft Visual Studio 2013. Click consistent_hash.sln and build, then you can debug and run in the environment of MSVS 2013.
There are many good materials online and I will give a list that is useful for me. And my code get many help from reference[3.4].