def generateApiKey():
 logger.log(u'Generating New API key')
 secure_hash = hashlib.sha512(str(time.time()))
 secure_hash.update(str(random.SystemRandom().getrandbits(4096)))
 return secure_hash.hexdigest()[:32]

def generateApiKey ( ) : logger . log ( u'Generating New API key' ) secure_hash = hashlib . sha512 ( str ( time . time ( ) ) ) secure_hash . update ( str ( random . SystemRandom ( ) . getrandbits ( 4096 ) ) ) return secure_hash . hexdigest ( ) [ : 32 ]
return a new randomized api_key .