[Home] [Groups] - Message: [Prev in Group] [Next in Group]
1477: Re: Greetings. :)
[Full Header] [Plain Text]
From: "Jon A. Lambert" <jlsysinc@ix.netcom.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Tue, 8 Apr 1997 23:45:13 -0400
Organization: Kanga.Nu
> From: Shawn Halpenny <malachai@iname.com>
> On Apr 6, 8:23am, coder@ibm.net wrote:
> > Objects have Unique IDs.
>
> I've been kicking this unique ID/object around as well, and was
> wondering about how you generate them? I haven't been able to find
<snip>
> Any magical algorithms? :)
Well, I use an static double integer (64 bit). I simply increment it every time I created
an object. On boot up, I save the highest object number loaded.
I've seen servers which recalculate all the object numbers at a reboot to recover
the holes. I don't do this as of yet.
BTW Does anyone know how to create a "magic number" from any given size
block of memory?