Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.python Subject: Re: Make a unique filesystem path, without creating the file Date: Mon, 22 Feb 2016 11:22:56 -0800 Organization: A noiseless patient Spider Lines: 10 Message-ID: <878u2c4kj3.fsf@jester.gateway.pace.com> References: <85r3gf55k4.fsf@benfinney.id.au> <85mvr26dij.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="3c7a0b0f75f6c95b248ff930d17c36e7"; logging-data="6610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190gOwZW0t2iqaMhd3NjcyT" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:FpM4g9YUT5LtpuFa2aXVnyWK7dI= sha1:3FNUDdprJixVy7ksYCnk5UvC56w= Xref: csiph.com comp.lang.python:103357 Chris Angelico writes: >> I was under the impression that the point of UUIDs is that you can be >> *so* confident that there won't be a collision that for all practical >> purposes it's indistinguishable from being certain. > Maybe, if everyone's cooperating. I'm not sure how they fare in the > face of malice though. There are different UUID algorithms, some of which have useful syntax but are easy to spoof. Uuid4 is random and implemented properly, should be hard to spoof.