hashfunctions-extension

11 fast hash functions for general purpose non-cryptographic use implemented originally by Arash Partow. The Ruby C extension.


License
Other
Install
gem install hashfunctions-extension -v 1.0.0

Documentation

General Purpose Hash Functions Extension

hashfunctions-extension is a Ruby C extension which implements 11 fast hash functions for general purpose non-cryptographic use implemented originally by Arash Partow. General pure API is available by the hashfunctions gem.

Some example:

require "general-hash-functions/extension"
hash = GeneralHashFunctionsExt::djbhash("some string")
# will return the 395673328

See description of all contained functions at Arash Partow's page: http://www.partow.net/programming/hashfunctions/index.html#AvailableHashFunctions

Copyright

Copyright © 2002 Arash Partow.
Copyright © 2012 – 2015 Martin Poljak.
See LICENSE.txt for further details.