17 typedef uint64_t scamac_rng_seed_ty;
27 ScamacErrorCode scamac_ransrc_alloc(scamac_rng_seed_ty seed, scamac_ransrc_st ** ransrc);
28 ScamacErrorCode scamac_ransrc_free(scamac_ransrc_st * ransrc);
30 ScamacErrorCode scamac_ransrc_set_seed(scamac_rng_seed_ty seed, scamac_ransrc_st * ransrc);
35 uint64_t scamac_ransrc_uint64(scamac_ransrc_st * ransrc, uint64_t i);
38 double scamac_ransrc_double(scamac_ransrc_st *ransrc,
double a,
double b, uint64_t i);
42 ScamacErrorCode scamac_ranvec_uint64(scamac_rng_seed_ty seed, uint64_t iv, uint64_t nv, uint64_t * ranvec);
43 ScamacErrorCode scamac_ranvec_double(scamac_rng_seed_ty seed, uint64_t iv, uint64_t nv,
double a,
double b,
double * ranvec);
50 scamac_rng_seed_ty scamac_rng_entropy(
const char *str);
ScaMaC data structure and macro definitions.
scamac_rng_seed_ty scamac_rng_string_to_seed(const char *str)