Struct faiss::SplitMix64RandomGenerator

struct SplitMix64RandomGenerator

fast random generator that cannot be used in multithreaded contexts. based on https://prng.di.unimi.it/

Public Functions

int rand_int()

random positive integer

int64_t rand_int64()

random int64_t

int rand_int(int max)

generate random integer between 0 and max-1

float rand_float()

between 0 and 1

double rand_double()
explicit SplitMix64RandomGenerator(int64_t seed = 1234)
uint64_t next()

Public Members

uint64_t state