Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2006 15:16:29 -0400
From:      Bill Moran <wmoran@collaborativefusion.com>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        Howard Jones <howie@thingy.com>, "Marc G. Fournier" <scrappy@freebsd.org>, freebsd-questions@freebsd.org
Subject:   Re: BSDstats Project v2.0 ...
Message-ID:  <20060809151629.43741c35.wmoran@collaborativefusion.com>
In-Reply-To: <44DA299C.8080801@infracaninophile.co.uk>
References:  <20060807003815.C7522@ganymede.hub.org> <20060808102819.GB64879@augusta.de> <20060808153921.V7522@ganymede.hub.org> <44D8EC98.8020801@utdallas.edu> <20060808201359.S7522@ganymede.hub.org> <44D91F02.90107@mawer.org> <20060808212719.L7522@ganymede.hub.org> <20060809072313.GA19441@sysadm.stc> <ef10de9a0608090341l696b6ea3s2187f4b0a9b5fa6e@mail.gmail.com> <20060809105404.GC19441@sysadm.stc> <44DA0715.1020507@utdallas.edu> <20060809130634.S7522@ganymede.hub.org> <44DA0DDF.40300@thingy.com> <20060809134007.U7522@ganymede.hub.org> <44DA1502.2040803@thingy.com> <20060809142006.F7522@ganymede.hub.org> <44DA299C.8080801@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to Matthew Seaman <m.seaman@infracaninophile.co.uk>:

> This problem is intractable: any scheme you can think of to generate a
> unique identifying number on a random host out there on the net will either
> fail to actually be unique, or suffer from mutating over time as machine
> configuration changes.

Really?  What if you just generate some sort of UID or GUID and store it
in /var/db/bsdstats.guid (or similar)?

If the file exists, use it, if it doesn't exist, generate a new ID.

Not 100% error prone, but should be pretty damn reliable.

-- 
Bill Moran
Collaborative Fusion Inc.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060809151629.43741c35.wmoran>