You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Clean up Hash Functions
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
This commit is contained in:
@@ -71,7 +71,7 @@ GDScriptRPCCallable::GDScriptRPCCallable(Object *p_object, const StringName &p_m
|
||||
object = p_object;
|
||||
method = p_method;
|
||||
h = method.hash();
|
||||
h = hash_djb2_one_64(object->get_instance_id(), h);
|
||||
h = hash_murmur3_one_64(object->get_instance_id(), h);
|
||||
node = Object::cast_to<Node>(object);
|
||||
ERR_FAIL_COND_MSG(!node, "RPC can only be defined on class that extends Node.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user