aboutsummaryrefslogtreecommitdiff
path: root/paramiko/rsakey.py
diff options
context:
space:
mode:
Diffstat (limited to 'paramiko/rsakey.py')
-rw-r--r--paramiko/rsakey.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/paramiko/rsakey.py b/paramiko/rsakey.py
index a665279..1e2d8f9 100644
--- a/paramiko/rsakey.py
+++ b/paramiko/rsakey.py
@@ -137,8 +137,7 @@ class RSAKey (PKey):
@return: new private key
@rtype: L{RSAKey}
"""
- randpool.stir()
- rsa = RSA.generate(bits, randpool.get_bytes, progress_func)
+ rsa = RSA.generate(bits, rng.read, progress_func)
key = RSAKey(vals=(rsa.e, rsa.n))
key.d = rsa.d
key.p = rsa.p