From 1b6ff2b4f66f606b46d14a7c19d540b0ed542c85 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sun, 20 Sep 2015 21:53:54 +1000 Subject: [PATCH] Withdraw PEP 504 in favour of 506 --- pep-0504.txt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/pep-0504.txt b/pep-0504.txt index 6e18b6384..127d633fa 100644 --- a/pep-0504.txt +++ b/pep-0504.txt @@ -3,7 +3,7 @@ Title: Using the System RNG by default Version: $Revision$ Last-Modified: $Date$ Author: Nick Coghlan -Status: Draft +Status: Withdrawn Type: Standards Track Content-Type: text/x-rst Created: 15-Sep-2015 @@ -38,6 +38,21 @@ deterministic random number generator process wide either by using a new To minimise the impact on existing code, module level APIs that require determinism will implicitly switch to the deterministic PRNG. +PEP Withdrawal +============== + +During discussion of this PEP, Steven D'Aprano proposed the simpler alternative +of offering a standardised ``secrets`` module that provides "one obvious way" +to handle security sensitive tasks like generating default passwords and other +tokens. + +Steven's proposal has the desired effect of aligning the easy way to generate +such tokens and the right way to generate them, without introducing any +compatibility risks for the existing ``random`` module API, so this PEP has +been deferred in favour of further work on refining Steven's proposal as +PEP 506. + + Proposal ========