From 0d5cc38a351da1abe54adab98042748c71b70a96 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 12 Nov 2008 20:18:42 -0700 Subject: [PATCH] web/info.py: use 128-bit ophandles instead of 64-bit --- src/allmydata/web/info.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/allmydata/web/info.py b/src/allmydata/web/info.py index 6d7dc3aa..b15bc2be 100644 --- a/src/allmydata/web/info.py +++ b/src/allmydata/web/info.py @@ -194,7 +194,7 @@ class MoreInfo(rend.Page): return "" def render_deep_check_form(self, ctx, data): - ophandle = base32.b2a(os.urandom(8)) + ophandle = base32.b2a(os.urandom(16)) deep_check = T.form(action=".", method="post", enctype="multipart/form-data")[ T.fieldset[ @@ -217,7 +217,7 @@ class MoreInfo(rend.Page): return ctx.tag[deep_check] def render_deep_size_form(self, ctx, data): - ophandle = base32.b2a(os.urandom(8)) + ophandle = base32.b2a(os.urandom(16)) deep_size = T.form(action=".", method="post", enctype="multipart/form-data")[ T.fieldset[ @@ -229,7 +229,7 @@ class MoreInfo(rend.Page): return ctx.tag[deep_size] def render_deep_stats_form(self, ctx, data): - ophandle = base32.b2a(os.urandom(8)) + ophandle = base32.b2a(os.urandom(16)) deep_stats = T.form(action=".", method="post", enctype="multipart/form-data")[ T.fieldset[ @@ -241,7 +241,7 @@ class MoreInfo(rend.Page): return ctx.tag[deep_stats] def render_manifest_form(self, ctx, data): - ophandle = base32.b2a(os.urandom(8)) + ophandle = base32.b2a(os.urandom(16)) manifest = T.form(action=".", method="post", enctype="multipart/form-data")[ T.fieldset[ -- 2.45.2