Created
April 8, 2014 11:18
-
-
Save aminamid/10111149 to your computer and use it in GitHub Desktop.
1 line cassandra token generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tokengenerator (node#,num of node) | |
python -c 'print (lambda node,nodes: [ 2**127/nodes*x for x in xrange(nodes)][node-1])(1,5)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment