[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-dcom
Subject:    Re: Generating visibly distinct GUIDS
From:       Pradeep Tapadiya <ipradeep () MSN ! COM>
Date:       2000-09-28 3:38:24
[Download RAW message or body]


I have seen this behavior only on NT 4.0, not on Windows 2000.
It seems the algorithm that is being used to generate GUIDs is
different on Windows 2000.

Is generating GUIDs on Windows 2000 machine out of question?

IPradeep

----- Original Message -----
From: "Andrew Johnson" <andy@MAIL.COGSYS.CO.UK>
To: <DCOM@DISCUSS.MICROSOFT.COM>
Sent: Wednesday, September 27, 2000 11:02 AM
Subject: Generating visibly distinct GUIDS


> Hi,
>
> I have a need to generate pairs of GUIDS that are _visibly_ different when
> they
> are displayed as strings. If I call UuidCreate() twice in succession I get
> two
> GUIDs that are almost the same. For example:
>
>     {280EFC00-949E-11D4-8042-0001022A2E1D}    and
>     {280EFC01-949E-11D4-8042-0001022A2E1D}
>
> The above GUIDS differ only by one character. I need them to _look_
> obviously
> different.
>
> I thought of just rotating the bytes through the structure for the second
> GUID,
> but I'm unsure whether the resulting GUID might be invalid in some way.
Are
> there
> any maximum or minimum values for the different parts of the GUID, for
> example?
> Any other constraints?
>
> Any comments would be appreciated.
>
> -------------------------------------------------------------
> Andrew Johnson              Voice: +44 (0)161 745 7604
> Software Developer          Fax:   +44 (0)161 736 2634
> Cogsys Ltd.                 Email: andrew.johnson@cogsys.com
> Manchester, UK              Web:   http://www.cogsys.com
> -------------------------------------------------------------
>
> ----------------------------------------------------------------
> Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
> contains important info including how to unsubscribe.  Save time, search
> the archives at http://discuss.microsoft.com/archives/index.html
>

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic