@ sandy - According to that what Justin just wrote this might not be a very good solution.
The Windows API Implementation uses a combination of MAC Address system time time (I think at least) and counting.
By this a GUID should be world wide unique (If the computer has a network card).
I Guess the NETMF implementation is more simple.
@ sandy - I don’t want to be picky, but in fact a GUID should not be random, it should be unique.
A perfect random number generator could create the same number 10 times or even more often in a row. The numbers just needs to be equally distributed if you get an unlimited number of numbers.
btw. I hate statistics :whistle: never was good in it, but this little knowledge remained somehow.
Windows default GUID algorithm (since windows 2000) generates a version 4 GUID which relies on a random number generator. Of course you would want it to be a decent PRNG.
V1 GUIDs which are sequential and based on the MAC address are considered a security risk because it exposes information about the machine the GUID was generated on and the date/time it was generated.
I just checked the NETMF implementation and it is an incomplete implementation of the V4 GUID algorithm, it is not handling the 2 significant bits of the clock sequence. Not that it would make a difference if the PRNG is useless.