def _generate_seed():
 x = SystemRandom().randint(0, ((32 ** 16) - 1))
 h = hex(x).strip('L')[2:]
 if (len(h) % 2):
  h = ('0' + h)
 return h

def _generate_seed ( ) : x = SystemRandom ( ) . randint ( 0 , ( ( 32 ** 16 ) - 1 ) ) h = hex ( x ) . strip ( 'L' ) [ 2 : ] if ( len ( h ) % 2 ) : h = ( '0' + h ) return h
generate a new random seed the length of the returned string will be a multiple of two .