|
|
Subscribe / Log in / New account

Python and crypto-strength random numbers by default

Python and crypto-strength random numbers by default

Posted Sep 17, 2015 21:21 UTC (Thu) by njs (subscriber, #40338)
In reply to: Python and crypto-strength random numbers by default by njh
Parent article: Python and crypto-strength random numbers by default

> Why not return values from the MT algorithm if random.random() is called after an explicit seed has been set, but switch to a newer CSPRNG algorithm if random.random() is called without seeding?

AFAICT, the only reason not to (besides the usual one that it would take some work to implement and maintain) is that Guido considers it "a hack" :-(


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds