Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suggestions for random candidate key generation methodol
Message
From
10/05/2004 23:07:15
 
 
To
10/05/2004 18:07:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00902286
Message ID:
00902677
Views:
25
Hilmer-
>>
>>>How serious is the (relatively unlikely) possibility that a certain combination does repeat? 'Cause you could just use the rand() function to create them codes.
>>>
>>
>>As unlikely as it is, it's far easier in this case to program so that I don't have to rely on unlikeliness, but I'm inclined to paranoia. ;-)
>
>You are probably aware of the GUID function. The result is longer, (16 bytes), but it is quite safe to assume - without much programming effort - that the result is, indeed, unique.

I mentioned a couple of times conditions that make GUIDs unusable, but thanks anyway for the suggestion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform