Re: Re: Merge with git-pasky II.
- From
Petr Baudis <pasky@ucw.cz>
- Date
- Apr 16, 2005, 16:03 UTC
- Message-ID
- <20050416160333.GF19099@pasky.ji.cz>
- In-Reply-To
- <20050416155536.GX4488@himi.org>
Dear diary, on Sat, Apr 16, 2005 at 05:55:37PM CEST, I got a letter where Simon Fowler <simon@himi.org> told me that...
Show 12 quoted lines
> On Sat, Apr 16, 2005 at 05:19:24AM -0700, David Lang wrote: > > Simon > > > > given that you have multiple machines creating files, how do you deal with > > the idea of the same 'unique id' being assigned to different files by > > different machines? > > > The id is a sha1 hash of the current time and the full path of the > file being added - the chances of that being replicated without > malicious intent is extremely small. There are other things that > could be used, like the hostname, username of the person running the > program, etc, but I don't really see them being necessary.
Why not just use UUID?
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor