From 259b43bc900512cf23253b25ab3a36988ae033ae Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Fri, 10 Jun 2011 14:34:19 +0200 Subject: [PATCH] Longer. --- pastebin/apps/dpaste/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pastebin/apps/dpaste/models.py b/pastebin/apps/dpaste/models.py index ebe836a..0d993e2 100644 --- a/pastebin/apps/dpaste/models.py +++ b/pastebin/apps/dpaste/models.py @@ -10,7 +10,7 @@ from django.utils.translation import ugettext_lazy as _ from pastebin.apps.dpaste.highlight import LEXER_DEFAULT, pygmentize t = 'abcdefghijkmnopqrstuvwwxyzABCDEFGHIJKLOMNOPQRSTUVWXYZ1234567890' -def generate_secret_id(length=3): +def generate_secret_id(length=5): return ''.join([random.choice(t) for i in range(length)]) class Snippet(models.Model):