c++ - How to hash a GUID and a 64-bit timestamp into another GUID -


We are working with a proprietary database and a table, which means conjugation key 128-bit GUID and 64-bit Timestamp "Earth Mixed Key" can mean multiple records of the same GUID in one sense, as well as many records with the same timestamp; Although the pair (GUID, timestamp) is unique, as an enhancement to better support the hashing system, we can force the timestamp to be completely unique, e.g. Increasing it by a millisecond.

The proprietary database is low and it has a 128-bit hash key that we want to use for fast access. In this way we need to have a GUID and timestamp in a 128-bit field, i.e. in another GUID.

Can you propose a hash function which can best provide this purpose?

How about MD5? It has the correct length and good distribution characteristics, you have computationally more intensive than an xorax of two fields.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -