3 ms·
If you only use the first 4-8 characters of your md5 hash, can't you just convert that from hex to base 10 and get an int?
by teej 17y ago
If you only use the first 4-8 characters of your md5 hash, can't you just convert that from hex to base 10 and get an int?
- dpifke 17y agoYou could, but then you need to implement collision avoidance when creating new records. Database sequences are guaranteed to be unique.