Crypt-Komihash

 view release on metacpan or  search on metacpan

lib/Crypt/Komihash.xs  view on Meta::CPAN

	return ret;
}

// XS binding
MODULE = Crypt::Komihash   PACKAGE = Crypt::Komihash

UV komihash(SV *input, UV seednum = 0)
	CODE:
		STRLEN len = 0;
		// Take the bytes in input, put the length in len, and get a pointer to the bytes
		// We use SvPVbyte instead of SvPV to handle unicode correctly
		char *buf  = SvPVbyte(input, len);

		RETVAL = (UV)komihash(buf, len, seednum);
	OUTPUT:
		RETVAL

UV komirand64()

void komirand_seed(UV seed1, UV seed2)



( run in 0.365 second using v1.01-cache-2.11-cpan-88abd93f124 )