diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-20 14:01:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 14:01:06 +0200 |
commit | 66a30dab35f3788ae28c7e6171d3908fe75e7b75 (patch) | |
tree | cc5045d98995b754097d1dde100f0138033fc735 /modules/mono | |
parent | 8e3d9a23aa0a724d3dd25fcf0e8085b5a438c233 (diff) | |
parent | 141c3755814cea60888c7ee548c7ce709550b784 (diff) |
Merge pull request #62176 from reduz/cleanup-hashfuncs
Diffstat (limited to 'modules/mono')
-rw-r--r-- | modules/mono/managed_callable.cpp | 3 | ||||
-rw-r--r-- | modules/mono/signal_awaiter_utils.cpp | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/modules/mono/managed_callable.cpp b/modules/mono/managed_callable.cpp index 4f7783b765..c159bb9eea 100644 --- a/modules/mono/managed_callable.cpp +++ b/modules/mono/managed_callable.cpp @@ -66,9 +66,8 @@ bool ManagedCallable::compare_less(const CallableCustom *p_a, const CallableCust } uint32_t ManagedCallable::hash() const { - // hmm uint32_t hash = delegate_invoke->get_name().hash(); - return hash_djb2_one_64(delegate_handle.handle, hash); + return hash_murmur3_one_64(delegate_handle.handle, hash); } String ManagedCallable::get_as_text() const { diff --git a/modules/mono/signal_awaiter_utils.cpp b/modules/mono/signal_awaiter_utils.cpp index 315a9c29f6..618e1b58e0 100644 --- a/modules/mono/signal_awaiter_utils.cpp +++ b/modules/mono/signal_awaiter_utils.cpp @@ -63,7 +63,7 @@ bool SignalAwaiterCallable::compare_less(const CallableCustom *p_a, const Callab uint32_t SignalAwaiterCallable::hash() const { uint32_t hash = signal.hash(); - return hash_djb2_one_64(target_id, hash); + return hash_murmur3_one_64(target_id, hash); } String SignalAwaiterCallable::get_as_text() const { @@ -164,7 +164,7 @@ bool EventSignalCallable::compare_less(const CallableCustom *p_a, const Callable uint32_t EventSignalCallable::hash() const { uint32_t hash = event_signal->field->get_name().hash(); - return hash_djb2_one_64(owner->get_instance_id(), hash); + return hash_murmur3_one_64(owner->get_instance_id(), hash); } String EventSignalCallable::get_as_text() const { |