From 699bb15f230ec593e5fe1584a8b0fbc13c72233a Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 12 Aug 2008 04:14:44 +0000 Subject: [PATCH] Fix a test failure by limiting random.randrange to [-32768, 32767] --- plugins/Unix/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Unix/plugin.py b/plugins/Unix/plugin.py index 5ad1caa64..f754e2d92 100644 --- a/plugins/Unix/plugin.py +++ b/plugins/Unix/plugin.py @@ -1,5 +1,6 @@ ### # Copyright (c) 2002-2005, Jeremiah Fincher +# Copyright (c) 2008, James Vega # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -112,7 +113,7 @@ class Unix(callbacks.Plugin): def makeSalt(): s = '\x00' while self._cryptre.sub('', s) != '': - s = struct.pack('