2 ms·
The implementation isn't even really correct... Given a bunch of URL's, they may have a colliding hashcode just because they resolve to the same IP address.
by londons_explore 5y ago
The implementation isn't even really correct...
Given a bunch of URL's, they may have a colliding hashcode just because they resolve to the same IP address. For example because they are all cloudflare websites that resolve to the same cloudflare endpoint.
- sandGorgon 5y agoyes. that is specifically what Google pointed out. this behavior is disabled on android. https://github.com/AndroidSDKSources/android-sdk-sources-for-api-level-31/blob/master/java/net/URL.java#L850 https://github.com/AndroidSDKSources/android-sdk-sources-for...