From fac1a8e2b737d461e68591e7fa1d7bed090e25e2 Mon Sep 17 00:00:00 2001 From: Greg Von Kuster Date: Thu, 19 Jun 2008 18:19:09 +0000 Subject: [PATCH] Fix for my last "fix" to SecurityHelper which actually broke it, need more bytes in the RandomPool. --- lib/galaxy/web/security/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/web/security/__init__.py b/lib/galaxy/web/security/__init__.py index 56d1cd31979..ad958baa5e0 100644 --- a/lib/galaxy/web/security/__init__.py +++ b/lib/galaxy/web/security/__init__.py @@ -30,7 +30,7 @@ class SecurityHelper( object ): return self.id_cipher.decrypt( session_key.decode( 'hex' ) ).lstrip( "!" ) def get_new_session_key( self ): # Generate a unique, high entropy 128 bit random number - random_pool = RandomPool( 16 ) + random_pool = RandomPool( 1064 ) while random_pool.entropy < 128: random_pool.add_event() random_pool.stir()