[fpc-devel] CreateGUID implementation attached
Danny Milosavljevic
danny.milo at gmx.net
Thu May 19 20:43:50 CEST 2005
Hi,
Am Donnerstag, den 19.05.2005, 19:08 +0200 schrieb Michael Van Canneyt:
>
> On Thu, 19 May 2005, Danny Milosavljevic wrote:
>
> > Hi,
> >
> > attached you find a CreateGUID implementation that creates (time-based)
> > guids. These follow a low-high approach, with a random part and a time
> > part.
> >
> > If available, uses libuuid.so.1 and /dev/urandom. Otherwhise uses manual
> > implementation (which sucks - just test by while true ;
> > do ./createguid ; done and behold all the equal guids) as a fallback.
> >
> > The function should be pretty usable *if* libuuid.so.1 is available, and
> > pretty dangerous if not. I'll not be improving the fallback further
> > though. Someone wants to step in?
>
> You're a bit too late, unfortunately. I have a native object pascal CreateGUID
> function ready. It mimics libuuid on Linux (uses mac address and time), and
That's great :)
> uses native windows calls on Win32. For other platforms it uses simply random
> numbers if no 'real' implementation is available.
>
> I was just waiting for 2.0 to settle down to check it in.
I see
>
> I will do so shortly, so if you're patient, you'll see it appear quite soon.
okay
> Michael.
cheers,
Danny
--
www.keyserver.net key id A334AEA6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20050519/70a49889/attachment.sig>
More information about the fpc-devel
mailing list