Skip to content

Commit

Permalink
fix issue with generate (random)
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Aug 22, 2021
1 parent 04dbd8a commit 7274885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/netius/base/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3610,9 +3610,9 @@ def _generate(self, hashed = True):
if not hashed: return identifier
identifier = legacy.bytes(identifier)
hash = hashlib.sha256(identifier)
indetifier = hash.hexdigest()
identifier = hash.hexdigest()
identifier = identifier.upper()
return indetifier
return identifier

def _connect(self, connection):
# in case the current connection has been closed meanwhile
Expand Down

0 comments on commit 7274885

Please sign in to comment.