BSDstats Project v2.0 ...

Bill Moran wmoran at collaborativefusion.com
Wed Aug 9 19:16:23 UTC 2006


In response to Matthew Seaman <m.seaman at 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.


More information about the freebsd-questions mailing list