summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-02-02 20:00:25 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-02-02 20:00:25 +0100
commit57b8aead119fd36c2e272eb4b56e0188977fd7fd (patch)
tree75e9b26213a3fdf2a897c74a0ae390f345f2c866
parent9c38ef1c66b49d02d2dbc5b4b6ff952537e76a9d (diff)
Call random.seed() when initializing.
-rw-r--r--pastepy.py2
1 files changed, 2 insertions, 0 deletions
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 = {