mirror of
https://github.com/wassname/ray.git
synced 2026-08-08 11:25:28 +08:00
Change UniqueID hash function to look at the lowest instead of highest bytes. (#469)
This commit is contained in:
committed by
Philipp Moritz
parent
8ac6c59931
commit
cf68cf743c
+1
-1
@@ -159,7 +159,7 @@ struct UniqueIDHasher {
|
||||
/* ObjectID hashing function. */
|
||||
size_t operator()(const UniqueID &id) const {
|
||||
size_t result;
|
||||
memcpy(&result, id.id + UNIQUE_ID_SIZE - sizeof(size_t), sizeof(size_t));
|
||||
memcpy(&result, id.id, sizeof(size_t));
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user