-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Crypto.Random with os.urandom
RHEL/CentOS 6 installations ship python-crypto 2.0, which does not include Crypto.Random. However, os.urandom is guaranteed to be cryptographically secure on GNU/Linux, BSD, and Windows. So, there is nothing gained my using Crypto.Random when os.urandom exists, and does not compromise security. Now older operating systems can be fully supporting without yak shaving.
- Loading branch information
Showing
2 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
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
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