diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-02-02 20:00:25 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-02-02 20:00:25 +0100 |
commit | 57b8aead119fd36c2e272eb4b56e0188977fd7fd (patch) | |
tree | 75e9b26213a3fdf2a897c74a0ae390f345f2c866 | |
parent | 9c38ef1c66b49d02d2dbc5b4b6ff952537e76a9d (diff) |
Call random.seed() when initializing.
-rw-r--r-- | pastepy.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 = { |