[Mono-list] Needed: randomness for System.Guid.NewGuid.

Dick Porter dick@ximian.com
Wed, 6 Feb 2002 10:42:18 +0000


On Wed, Feb 06, 2002 at 12:18:33AM +0100, Duco Fijma wrote:
> >For some bits of System.Guid maybe you will want to use an
> >`internalcall' (we can implement this for you) to retrieve things like
> >the ethernet address.
> >
> >Let me know what do you need, and we will implement.
> >
> >Miguel.
> 
> Well, here I am :-). I have no real experience accessing the "underlying
> metal" in Mono/C#, so I would like to share some thoughts on the
> strategy to follow when generating Guids and the way to access the bits
> of randomness needed.
> 
> I had in mind the following strategy for implementing Guid's:

There already is a library for generating uuids: it's called libuuid and
comes with e2fsprogs (on debian, the package name might be different on
other dists.)  I believe there is a similar library native on Solaris.

- Dick