Code

Fix: (Now real) random filenames in checkresultdir
authorSven Velt <sven@velt.de>
Thu, 23 Sep 2010 10:38:58 +0000 (12:38 +0200)
committerSven Velt <sven@velt.de>
Thu, 23 Sep 2010 10:39:53 +0000 (12:39 +0200)
Signed-off-by: Sven Velt <sven@velt.de>
nagixsc/__init__.py

index 03884e36b9f22df2a4cda5d51ede2c410382fe4d..8f886ac5a9e46c8a75ddc2a2c449204199aabdc2 100644 (file)
@@ -217,12 +217,13 @@ def dict2out_passive(checks, xmltimestamp, opt_pipe, opt_verb=0):
        return count_services
 
 
-def dict2out_checkresult(checks, xmltimestamp, opt_checkresultdir, opt_verb):
+def dict2out_checkresult(checks, xmltimestamp, opt_checkresultdir, opt_verb=0):
        count_services = 0
        count_failed = 0
        list_failed = []
        chars = string.letters + string.digits
        ctimestamp = datetime.datetime.now().ctime()
+       random.seed()
 
        for check in checks:
                count_services += 1