Fixed urandom() usage

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@490 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
oepen
2011-08-17 10:41:19 +00:00
parent ffeb5ef066
commit d98a889133

View File

@@ -278,8 +278,7 @@ class SAM(object):
length = 8 #Length of the challenge in Byte
self.last_challenge = urandom(length)
logging.debug("Generated challenge: %s" % str(self.last_challenge))
self.last_challenge = inttostring(self.last_challenge, length)
logging.debug("Generated challenge: %s" % self.last_challenge)
return SW["NORMAL"], self.last_challenge