No description, website, or topics provided.
Perl 6
Switch branches/tags
Nothing to show
Clone or download
Latest commit 6a50c7d Apr 3, 2018
Permalink
Failed to load latest commit information.
lib/Digest init Nov 20, 2017
t init Nov 20, 2017
.gitignore init Nov 20, 2017
META6.json init Nov 20, 2017
README.md init Nov 20, 2017
collisions.pl6 resetting pc Apr 3, 2018

README.md

Digest::FNV

Fowler–Noll–Vo hash function in pure perl6.

Exports

fnv0

If you want to use this, you must import with the :DEPRECATED flag.

fnv1

Performs the FNV1 hash.

fnv1a

The alternate FNV1 hash (XOR, then multiply)

Signatures

All of the exports have the signature of ($data, :bits(32|64|128|256|512|1024))

The tests only use 32|64, use the others at your own peril.

Usage

use Digest::FNV;

my $x = fnv1a('some str');
# $x = 651763969055412538