Closed charlesstaats closed 5 months ago
If we have taken the effort to write such a thing, why not make it cryptographically secure? (might need an extra dependency on OpenSSL though for maybe SHA256?)
I ended up adding a bunch more commits to this branch, so this pull request no longer really makes sense.
Add a hash function for strings. This hash function is based on std::hash, but with two notes:
try_consistent
option is available for users who want to disable this enforced inconsistency.The result is a new builtin function
<int hash(string s, bool try_consistent=<default>)>
.