BloombergLP::bslh::DefaultSeededHashAlgorithm::DefaultSeededHashAlgorithm

Create a bslh::DefaultSeededHashAlgorithm seeded with the specified seed.

Synopsis

Declared in <bslh_defaultseededhashalgorithm.h>

explicit
DefaultSeededHashAlgorithm(char const* seed);

Description

Create a bslh::DefaultSeededHashAlgorithm, seeded with the (k_SEED_LENGTH bytes) seed pointed to by the specified seed. Each bit of the supplied seed will contribute to the final hash produced by computeHash(). The behaviour is undefined unless seed points to at least k_SEED_LENGTH bytes of initialized memory.

Parameters

NameDescription
seedseed of k_SEED_LENGTH bytes used to initialize the algorithm