[MERGE] use a serial number and one random value for fileids

Aaron Bentley aaron.bentley at utoronto.ca
Fri May 19 04:22:46 BST 2006


Robert Collins wrote:
> This patch uses a serial number and a single random value for 'bzr add'
> rather than brand new randomness each time.

> The only hole I can see is someone doing fork() after calling add, and
> then calling add in the child. We probably should add an atfork hook to
> reset the seed in this case.

Did you consider just doing it in Tree.add?  That seems even safer and 
more transparent to me.

Aaron




More information about the bazaar mailing list