aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/check_nmap.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/check_nmap.py b/contrib/check_nmap.py
index b7a87385..481a62bf 100644
--- a/contrib/check_nmap.py
+++ b/contrib/check_nmap.py
@@ -207,8 +207,7 @@ class CheckNmap:
# _if_ two processes in deed get the same tmp-file
# the only result is a normal error message to nagios
#
- r=random.random()
- self.tmp_file=tempfile.mktemp('.%s')%r.randint(0,100000)
+ self.tmp_file=tempfile.mktemp('.%s') % random.randint(0,100000)
if self.debug:
print 'Tmpfile is: %s'%self.tmp_file
#