Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Mark Lawrence Newsgroups: comp.lang.python Subject: Re: Make a unique filesystem path, without creating the file Date: Tue, 23 Feb 2016 08:09:35 +0000 Lines: 38 Message-ID: References: <85r3gf55k4.fsf@benfinney.id.au> <85mvr26dij.fsf@benfinney.id.au> <56cba1bc$0$1604$c3e8da3$5496439d@news.astraweb.com> <87si0k2mal.fsf@jester.gateway.pace.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de wZWqzP4aMcQLqILnRFFBIAaGYnJpimJDVjtqiJORGplw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'url:pipermail': 0.05; 'default.': 0.07; 'subject:file': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'truncate': 0.09; 'suggest': 0.15; "hasn't": 0.15; 'later).': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'token,': 0.16; 'wrote:': 0.16; 'language': 0.19; "aren't": 0.22; 'lawrence': 0.22; 'made.': 0.22; 'header:In-Reply-To:1': 0.24; 'discussion': 0.24; 'paul': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'linux': 0.26; 'behaviour': 0.29; 'lists?': 0.29; 'pep': 0.29; 'url:peps': 0.29; 'that.': 0.30; 'guess': 0.31; 'language.': 0.32; 'url:python': 0.33; 'choices': 0.33; "d'aprano": 0.33; 'shorter': 0.33; 'steven': 0.33; 'that,': 0.34; 'draft': 0.35; 'i.e.': 0.35; 'url:dev': 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'things': 0.38; 'mailing': 0.38; 'subject:the': 0.39; "didn't": 0.39; 'enough': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'mark': 0.40; 'some': 0.40; 'default': 0.61; 'charset:windows-1252': 0.62; 'our': 0.64; 'benefit': 0.66; 'url:lists': 0.66; 'subject': 0.70; 'receive': 0.71; 'directed': 0.81; 'pythonistas,': 0.84; 'unclear': 0.84; 'subject:Make': 0.91; 'this!': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 80.234.182.166 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: <87si0k2mal.fsf@jester.gateway.pace.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103395 On 23/02/2016 02:27, Paul Rubin wrote: > Steven D'Aprano writes: >> https://www.python.org/dev/peps/pep-0506/ > > I didn't know about this! The discussion was all on mailing lists? https://mail.python.org/pipermail/python-ideas/2015-September/036333.html then http://www.gossamer-threads.com/lists/python/dev/1223780 > > A few things I suggest changing: > > 1) the default system RNG for Linux should be getrandom(2) on kernels > that support it (3.17 and later). > > 2) Some effort should be directed at simulating getrandom's behaviour > on kernels that don't have it, using the /dev/random entropy estimator > and the /dev/urandom interface. I.e. it should block if the system > hasn't seen enough entropy to get the CSPRNG started securely, and > never block after that. > > 3) The default token length should be long enough to not have to "change > in the future". If the user wants a shorter token, they ask for that, > or can truncate a longer one that they receive from the default. > > There are a few other choices in the PEP whose benefit is unclear to me, > but they aren't harmful, and I guess the decisions have already been > made. > The PEP status is draft so is subject to change. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence