mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix for my last "fix" to SecurityHelper which actually broke it, need more bytes in the RandomPool.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user