Skip to content

Commit

Permalink
fix tiny cornercase iterutils hostname issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Mar 31, 2024
1 parent 2363552 commit 65e0354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boltons/iterutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ def reseed(self):
import socket
self.pid = os.getpid()
self.salt = '-'.join([str(self.pid),
socket.gethostname() or b'<nohostname>',
socket.gethostname() or '<nohostname>',
str(time.time()),
codecs.encode(os.urandom(6),
'hex_codec').decode('ascii')])
Expand Down

0 comments on commit 65e0354

Please sign in to comment.