mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 13:01:06 -05: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():
|
def makeSalt():
|
||||||
s = '\x00'
|
s = '\x00'
|
||||||
while self._cryptre.sub('', s) != '':
|
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
|
return s
|
||||||
if not salt:
|
if not salt:
|
||||||
salt = makeSalt()
|
salt = makeSalt()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user