Skip to content

Instantly share code, notes, and snippets.

@yjzhang
Last active December 20, 2015 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yjzhang/53f13a493d8c7a17f7a2 to your computer and use it in GitHub Desktop.
Save yjzhang/53f13a493d8c7a17f7a2 to your computer and use it in GitHub Desktop.
How to use /dev/urandom in python
import os
import binascii
print binascii.hexlify(os.urandom(10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment