[−][src]Function accumulator::hash::hash_to_prime
pub fn hash_to_prime<T: Hash + ?Sized>(t: &T) -> Integer
Hashes t
to an odd prime.
Uses Blake2b
as the hash function, and hashes with a counter until a prime is found via
probabilistic primality checking.
This function is optimized for 256-bit integers.