|
|
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 14:39 UTC (Thu) by ssam (guest, #46587)
Parent article: Python and crypto-strength random numbers by default

The default implementation should be

def random():
    return 4
If that does not meet your requirements, then you can select the random generator based on what you need.


to post comments

Python and crypto-strength random numbers by default

Posted Sep 17, 2015 14:56 UTC (Thu) by corbet (editor, #1) [Link] (1 responses)

Cue the obligatory Dilbert link.

Python and crypto-strength random numbers by default

Posted Sep 17, 2015 23:44 UTC (Thu) by xorbe (guest, #3165) [Link]

No, ob XKCD link

https://xkcd.com/221/


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