Bouncer / bouncer / linear_sketches / headers / hashing_alg.h
hashing_alg.h
Raw
#ifndef HASHING_ALG_H
#define HASHING_ALG_H

bool isPrime(uint32_t n); 
uint32_t nextPrime(uint32_t N); 

uint32_t* generate_random_bits_CW(uint32_t, uint32_t, uint8_t,uint16_t ); 
uint32_t retrieve_hash_index_CW(uint32_t, int, uint32_t*); 

uint32_t* generate_random_bits_D(uint32_t, uint32_t, uint8_t, uint16_t); 
uint32_t retrieve_hash_index_D(uint32_t, int, uint32_t*); 

#endif // HASHING_ALG_H