summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-31 16:09:45 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-31 16:09:45 -0700
commit6c6969c1882e62d6249264d2df46ff452eb53e7e (patch)
treef9ece08696c895b75824c1aad974b8aef6580bf5
parent6f211115f49edcea7d23b764d7cf3a84ff12f5f0 (diff)
The ecdsa module already defaults to using urandom.
-rw-r--r--paramiko/ecdsakey.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/paramiko/ecdsakey.py b/paramiko/ecdsakey.py
index bb5b780d..23bf0fe0 100644
--- a/paramiko/ecdsakey.py
+++ b/paramiko/ecdsakey.py
@@ -102,8 +102,7 @@ class ECDSAKey (PKey):
def sign_ssh_data(self, data):
digest = SHA256.new(data).digest()
- sig = self.signing_key.sign_digest(digest, entropy=os.urandom,
- sigencode=self._sigencode)
+ sig = self.signing_key.sign_digest(digest, sigencode=self._sigencode)
m = Message()
m.add_string('ecdsa-sha2-nistp256')
m.add_string(sig)