From 6c6969c1882e62d6249264d2df46ff452eb53e7e Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 31 Mar 2014 16:09:45 -0700 Subject: The ecdsa module already defaults to using urandom. --- paramiko/ecdsakey.py | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3