Searched refs:seed (Results 1 - 8 of 8) sorted by relevance

/sssd/src/util/
H A Dmurmurhash3.h18 uint32_t murmurhash3(const char *key, int len, uint32_t seed);
H A Dmurmurhash3.c52 uint32_t murmurhash3(const char *key, int len, uint32_t seed) argument
65 h1 = seed;
H A Dmmap_cache.h94 uint32_t seed; /* random seed used to avoid collision attacks */ member in struct:sss_mc_header
/sssd/src/python/
H A Dpysss_murmur.c27 "murmurhash3(key, key_len, seed) -> 32bit integer hash\n\
30 using the given seed."
37 long long seed; local
41 &key, &key_len, &seed)) {
46 if (seed > UINT32_MAX || key_len > INT_MAX || key_len < 0 ||
52 hash = murmurhash3(key, key_len, seed);
/sssd/src/sss_client/
H A Dnss_mc_common.c89 ctx->seed = h.seed;
95 if (ctx->seed != h.seed ||
254 return murmurhash3(key, len, ctx->seed) % MC_HT_ELEMS(ctx->ht_size);
H A Dnss_mc.h47 uint32_t seed; /* seed from the tables header */ member in struct:sss_cli_mc_ctx
/sssd/src/tests/
H A Dutil-tests.c565 unsigned int seed; local
571 seed = init_seed;
573 len = 1 + rand_r(&seed) % 14;
575 test[i] = 1 + rand_r(&seed) % 254;
579 fprintf(stdout, "test_murmurhash3_random seed: %u\n", init_seed);
/sssd/src/responder/nss/
H A Dnsssrv_mmap_cache.c60 uint32_t seed; /* pseudo-random seed to avoid collision attacks */ member in struct:sss_mc_ctx
200 return murmurhash3(key, len, mcc->seed) % MC_HT_ELEMS(mcc->ht_size);
1175 h->seed = mc_ctx->seed;
1311 /* generate a pseudo-random seed.
1314 mc_ctx->seed = rand_r(&rseed);

Completed in 2398 milliseconds