AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to Computer Support/Help/Discussion...  <--  <--- Return to Home Page
   Networked Database  Computer Support/Help/Discussion...   [1897 / 2007] RSS
 From   To   Subject   Date/Time 
Message   LWN.net    All   [$] Python's two modules for random numbers   October 7, 2026
 6:40 AM *  

Python's random
and secrets
modules both include utilities for obtaining random values, but only one of them
is suitable for generating passwords and security tokens.
For much of Python's history, random was used for passwords and tokens anyway,
despite documentation that called it unsuitable for cryptography.
In 2015, Python's core team debated whether to fix that misuse by making random
secure by default.
Instead, in 2016, Python 3.6 added a second module: secrets.  The
random module is still misused at times, so it is instructive
to look into how the random-number modules should be used.

https://lwn.net/Articles/1097468/
--- SBBSecho 3.37-Linux
 * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (618:250/24)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to Computer Support/Help/Discussion...  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0161 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2026 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.250224