diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-05 16:12:23 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-05 16:12:23 -0800 |
commit | 7248ebd1bd9963280c061f8b3604c0a2bbff01bb (patch) | |
tree | 72edfab78e2ff0477436e91e3626e87cc5479d16 | |
parent | 6f93357f3826e321cd300c661da3e1fa2e44478b (diff) | |
download | cryptography-7248ebd1bd9963280c061f8b3604c0a2bbff01bb.tar.gz cryptography-7248ebd1bd9963280c061f8b3604c0a2bbff01bb.tar.bz2 cryptography-7248ebd1bd9963280c061f8b3604c0a2bbff01bb.zip |
Make the filename match
-rw-r--r-- | cryptography/hazmat/bindings/openssl/osrandom_engine.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cryptography/hazmat/bindings/openssl/osrandom_engine.py b/cryptography/hazmat/bindings/openssl/osrandom_engine.py index 6e7e172e..6bc95a0b 100644 --- a/cryptography/hazmat/bindings/openssl/osrandom_engine.py +++ b/cryptography/hazmat/bindings/openssl/osrandom_engine.py @@ -53,7 +53,9 @@ static int osrandom_rand_bytes(unsigned char *buffer, int size) { } if (!CryptGenRandom(hCryptProv, (DWORD)size, buffer)) { - ERR_put_error(ERR_LIB_RAND, 0, ERR_R_RAND_LIB, "osrandom.py", 0); + ERR_put_error( + ERR_LIB_RAND, 0, ERR_R_RAND_LIB, "osrandom_engine.py", 0 + ); return 0; } return 1; @@ -109,7 +111,9 @@ static int osrandom_rand_bytes(unsigned char *buffer, int size) { n = read(urandom_fd, buffer, (size_t)size); } while (n < 0 && errno == EINTR); if (n <= 0) { - ERR_put_error(ERR_LIB_RAND, 0, ERR_R_RAND_LIB, "osrandom.py", 0); + ERR_put_error( + ERR_LIB_RAND, 0, ERR_R_RAND_LIB, "osrandom_engine.py", 0 + ); return 0; } buffer += n; |