-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should rename std::hash::RandomSipHasher to something more generic #20050
Comments
This seems pretty reasonable to me, but we should probably explicitly specify that it's randomly keyed. |
(This has been nominated for the 1.0 milestone due to long-term security concerns.) |
I think the name should reflect that it is chosen specifically for its security properties, and not, say, performance properties (which seem to be mediocre). Also I do not think we should imply that it is a good secure or default choice for other hashing tasks. It is specifically good for HashMaps. SecureHashmapHasher? |
I prefer
Won't SipHash be necessary for some other collections, such as HAMT? |
Oh I assumed this was just going to be some kind of newtype/alias for RandomSipHasher (which is simply a nice, accurate, name). So HAMT would also alias it. |
Fixed in #20654
|
Right now
HashMap
s are tied to a specific algorithm implementation,std::hash::RandomSipHasher
. While I believe SipHash is considered cryptographically secure, if it were ever to be broken it could be painful transitioning everyone into a new Hasher. Instead, I suggest we change it's name now to save us from headaches later on. Some possible names:The text was updated successfully, but these errors were encountered: