Skip to content

Instantly share code, notes, and snippets.

@memorycraft
Created March 8, 2013 16:46
Show Gist options
  • Select an option

  • Save memorycraft/5117859 to your computer and use it in GitHub Desktop.

Select an option

Save memorycraft/5117859 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import sys
argvs = sys.argv
tokenc = int(argvs[1])
def tokens(num_nodes):
for i in range(num_nodes):
print ((2**64 / num_nodes) * i) - 2**63
tokens(tokenc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment