Skip to content

Instantly share code, notes, and snippets.

@pv8
Last active December 15, 2017 17:17
Show Gist options
  • Save pv8/9c509a8ebcb3de1e7ceb8ea5d02e6f23 to your computer and use it in GitHub Desktop.
Save pv8/9c509a8ebcb3de1e7ceb8ea5d02e6f23 to your computer and use it in GitHub Desktop.
IOTA Seed Generator
#!/usr/bin/env python3
from random import SystemRandom
LENGTH = 81
alphabet = b'9ABCDEFGHIJKLMNOPQRSTUVWXYZ'
sys_random = SystemRandom()
print(''.join([chr(sys_random.choice(alphabet)) for _ in range(LENGTH)]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment