[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [subversion-dev] Working repos; move/delete issues; XML

From: Jonathan S. Shapiro <shap_at_eros-os.org>
Date: 2000-06-16 22:36:06 CEST

> Anything involving random numbers is not a portable choice...

I wholeheartedly agree, but cryptographic hashes don't work to name objects
whose content changes over time but whose name remains the same. In DCMS,
there are two such objects: project descriptions (because the ACL can
change) and branches (because new versions can be appended).

Some randomness is better than none. I agree that it is insufficient. It's a
temporary solution. Eventually, the right thing will be to build a seed
buffer in memory that contains the host name, user name, time, phase of
moon, **and** a random number, and then use the cryptographic hash of that.

The saving grace is that there aren't a lot of projects and that branch
names are relative to project names, so two branches on independent projects
will not collide. Finally, in the worst event, the system is robust in the
case where the branch file must be renamed to some *other* random value.
Received on Sat Oct 21 14:36:05 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.