summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-05-25 01:22:15 -0300
committerJason R. Coombs <jaraco@jaraco.com>2013-05-25 01:22:15 -0300
commit10abfc8633bac653eda4d346fc051b2f07554dcd (patch)
tree5208f8249b5b04edca1b2583486e30c11fe3d102
parent1a19b607881311e7a30bbedab2bb49fa45019250 (diff)
downloadpycrypto-10abfc8633bac653eda4d346fc051b2f07554dcd.tar.gz
Fix error importing winrandom on Python 3
On Python 3, 'import winrandom' cannot be automatically converted to the relative import, so fails. This change fixes that behavior.
-rw-r--r--lib/Crypto/Random/OSRNG/nt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Crypto/Random/OSRNG/nt.py b/lib/Crypto/Random/OSRNG/nt.py
index c1c2f44..40aa495 100644
--- a/lib/Crypto/Random/OSRNG/nt.py
+++ b/lib/Crypto/Random/OSRNG/nt.py
@@ -25,7 +25,7 @@
__revision__ = "$Id$"
__all__ = ['WindowsRNG']
-import winrandom
+from Crypto.Random.OSRNG import winrandom
from rng_base import BaseRNG
class WindowsRNG(BaseRNG):