mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
Backed out my previous change. I should know better than to question the all-knowing jamessan.
This commit is contained in:
parent
bec12b6877
commit
de69f9da17
@ -113,7 +113,7 @@ class Unix(callbacks.Plugin):
|
||||
def makeSalt():
|
||||
s = '\x00'
|
||||
while self._cryptre.sub('', s) != '':
|
||||
s = struct.pack('<h', random.randrange(-(2**15), 2**15-1))
|
||||
s = struct.pack('<h', random.randrange(-(2**15), 2**15))
|
||||
return s
|
||||
if not salt:
|
||||
salt = makeSalt()
|
||||
|
Loading…
Reference in New Issue
Block a user