Description Usage Arguments Value References Examples
Dan Berstein's hash function. A variation on a [linear congruential generator](https://rosettacode.org/wiki/Linear_congruential_generator) It's fast but does a good job of producing decently distributed hash values.
1 | djb2_hash(x)
|
x |
character vector of strings to hash |
numeric vector of the hashes of x
[http://www.cse.yorku.ca/~oz/hash.html](http://www.cse.yorku.ca/~oz/hash.html) and [https://groups.google.com/forum/#!msg/comp.lang.c/lSKWXiuNOAk/zstZ3SRhCjgJ](https://groups.google.com/forum/#!msg/comp.lang.c/lSKWXiuNOAk/zstZ3SRhCjgJ)
1 2 | setdiff(djb2_hash(state.name), djb2_hash(state.name))
## numeric(0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.