🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #7876

Re: Uniqueness of Key ID

#7876
From: Your Name
Date: Wed, 08 Sep 1999 00:00
38 lines
1745 bytes
In article <37D54124.3FE11FD6@icb.co.at>, peter@icb.co.at says...
>
>The key-id is 32 bits long.
>
>So if I did not calculate wrong, the probability, that the ids of
>approximately 1 million Keys are different (unique) is
>
>p = ((2**32-1)/(2**32)) ** (2**20)
>
>** means the pow-function  (i. e. 2**10 = 1024)
>
>The probability, that two of the keys have the same id then is
>
>1 - p
>
>Can anyone calculate that? (I have no software, that can do that...)

Hello Peter

Regarding your counting, I agree with your denominator.

Let k = 2**32,  m = 10**6 or 1,000,000

Then the total sample space t = k**m

But, I think that your numerator is wrong.

The number J of m tuples where all the elements of 
each tuple are distinct would be (I hope)

J = k*(k-1)*(k-2)....(k-m+1)

So, the probability P of having 2 or more ID collisions
with one million keys is

	P = 1 - J/(k**m)

--Rich Eramian aka freeman
Technical Details
Message-ID: <TAkB3.441$JG1.111894@news.shore.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.mbox.zip!not-for-mail
References: <7qtmmq$nia$1@lure.pipex.net> <37D54124.3FE11FD6@icb.co.at>

Show Full Headers
Complete Article Headers
Message-ID: <TAkB3.441$JG1.111894@news.shore.net>
Subject: Re: Uniqueness of Key ID
Date: Wed, 08 Sep 1999 00:00:00 +0000
From: username@shore.net (Your Name)
References: <7qtmmq$nia$1@lure.pipex.net> <37D54124.3FE11FD6@icb.co.at>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.mbox.zip!not-for-mail
X-Deja-AN: 522379690
X-Complaints-To: abuse@shore.net
X-Trace: news.shore.net 936760755 209.192.169.24 (Tue, 07 Sep 1999 23:19:15 EDT)
Organization: Shore Net
MIME-Version: 1.0
NNTP-Posting-Date: Tue, 07 Sep 1999 23:19:15 EDT
Newsgroups: alt.privacy,alt.privacy.anon-server,alt.security.pgp