DJB2a non-cryptographic hash function
DJB2a has good distribution and collisions are rare.
$ npm install djb2a
import djb2a from 'djb2a';
djb2a('🦄🌈');
//=> 1484783307
It returns the hash as a positive integer.
DJB2a non-cryptographic hash function
DJB2a has good distribution and collisions are rare.
$ npm install djb2a
import djb2a from 'djb2a';
djb2a('🦄🌈');
//=> 1484783307
It returns the hash as a positive integer.