Backed out my previous change. I should know better than to question the all-knowing jamessan.

This commit is contained in:
Jeremy Fincher 2008-08-12 14:36:31 +00:00 committed by James Vega
parent bec12b6877
commit de69f9da17

View File

@ -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()