Showing results for May 23, 2012 - The Old New Thing

May 23, 2012
0
0

GUIDs are designed to be unique, not random

Raymond Chen
Raymond Chen

A customer liaison asked, "My customer is looking for information on the GUID generation algorithm. They need to select N items randomly from a pool of M (jury selection), and their proposed algorithm is to assign each item a GUID, then sort the items by GUID and take the first N." (I've seen similar questions regarding using GUIDs f...

Code