From 57b8aead119fd36c2e272eb4b56e0188977fd7fd Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 2 Feb 2010 20:00:25 +0100 Subject: Call random.seed() when initializing. --- pastepy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pastepy.py b/pastepy.py index f85b4fa..0148294 100644 --- a/pastepy.py +++ b/pastepy.py @@ -31,6 +31,8 @@ class Paste(object): self.lexers.append(('Others' if settings.categories else 'Syntax', sorted(lexers.items(), cmp = lambda a, b: cmp(a[0], b[0])))) self.formatter = CustomHtmlFormatter(linenos = 'table', lineanchors = 'line', anchorlinenos = True) + random.seed() + def message(self, msg, title = 'Message'): self.start_response('200 OK', [('Content-Type', 'text/html')]) return [str(templates.message(searchList = { -- cgit v1.2.3