djb2_hash: DJB2 Hash Function

Description Usage Arguments Value References Examples

View source: R/RcppExports.R

Description

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.

Usage

1

Arguments

x

character vector of strings to hash

Value

numeric vector of the hashes of x

References

[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)

Examples

1
2

hrbrmstr/hrbrmiscpp documentation built on May 17, 2019, 5:08 p.m.