c# - Shortening GUIDS whil Maintaining Uniqueness -
this question has answer here:
- youtube-like guid 7 answers
is possible hash or digest of guid shorter in length while maintaining it's uniqueness?
no. guid needs 128 bits globally unique. bits describe time, location, , uniqueness identifier (an incrementing key used prevent same guid being generated if clock hasn't moved or has been artificially manipulated).
if have requirement short of global uniqueness, yes, can create locally unique identifiers less 128 bits. there better ways generating 128 bit guid , coming kind of awesome hashing algorithm maintains pretty uniqueness @ less 128 bits.
Comments
Post a Comment