[Freeipa-devel] [PATCH] 0024 - Better random ranges

Simo Sorce ssorce at redhat.com
Tue Dec 7 13:19:28 UTC 2010


On Tue, 7 Dec 2010 13:53:53 +0100
Jan Zelený <jzeleny at redhat.com> wrote:

> Simo Sorce <ssorce at redhat.com> wrote:
> > This patch reduced the size of the default range (from 1 million to
> > 200.000) and also changes the way the range is selected.
> > Instead of starting at a completely random number, it selects 1 out
> > of 10000 random 200k ranges so that the range starts at multiples
> > of 200k.
> > 
> > This makes it so that 2 different installs either do not overlap at
> > all or overlap completely (once in 10k times) instead of potentially
> > partially overlapping.
> > 
> > Simo.
> 
> Do I understand correctly that this change is just to make IDs more
> readable? I don't get why two installs need to have either complete
> overlapping or no overlapping at all.

So that normally 2 installations have completely separate IDs, and a
third at most overlap with one of them but not partially with both.
Makes it easier to deal with conflicts IMO.

It also makes it somewhat easier to build tests that look at specific
patterns and aid the admin understanding the id numbers at first.

> Also, you have a typo in Rob's name ;-)

Ouch! Sorry Rob.
attached corrected version

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-simo-0024-2-Give-back-smaller-and-more-readable-ranges-by-defaul.patch
Type: text/x-patch
Size: 2170 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101207/79037bec/attachment.bin>


More information about the Freeipa-devel mailing list