| /f-stack/dpdk/lib/librte_eal/common/ |
| H A D | rte_random.c | 29 __rte_rand_lcg32(uint32_t *seed) in __rte_rand_lcg32() argument 31 *seed = 1103515245U * *seed + 12345U; in __rte_rand_lcg32() 33 return *seed; in __rte_rand_lcg32() 37 __rte_rand_lcg64(uint32_t *seed) in __rte_rand_lcg64() argument 46 low = __rte_rand_lcg32(seed); in __rte_rand_lcg64() 47 high = __rte_rand_lcg32(seed); in __rte_rand_lcg64() 57 res = __rte_rand_lcg64(seed); in __rte_rand_lfsr258_gen_seed() 70 lcg_seed = (uint32_t)(seed ^ (seed >> 32)); in __rte_srand_lfsr258() 80 rte_srand(uint64_t seed) in rte_srand() argument 206 uint64_t seed; in RTE_INIT() local [all …]
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ |
| H A D | keypair.c | 14 const unsigned char *seed) in crypto_sign_ed25519_seed_keypair() argument 19 memmove(sk, seed, 32); in crypto_sign_ed25519_seed_keypair() 21 crypto_hash_sha512(sk, seed, 32); in crypto_sign_ed25519_seed_keypair() 30 memmove(sk, seed, 32); in crypto_sign_ed25519_seed_keypair() 39 unsigned char seed[32]; in crypto_sign_ed25519_keypair() local 42 randombytes_buf(seed, sizeof seed); in crypto_sign_ed25519_keypair() 43 ret = crypto_sign_ed25519_seed_keypair(pk, sk, seed); in crypto_sign_ed25519_keypair() 44 sodium_memzero(seed, sizeof seed); in crypto_sign_ed25519_keypair()
|
| /f-stack/freebsd/contrib/zstd/lib/common/ |
| H A D | xxhash.c | 287 seed += input * PRIME32_2; in XXH32_round() 288 seed = XXH_rotl32(seed, 13); in XXH32_round() 289 seed *= PRIME32_1; in XXH32_round() 290 return seed; in XXH32_round() 311 U32 v3 = seed + 0; in XXH32_endian_align() 323 h32 = seed + PRIME32_5; in XXH32_endian_align() 355 XXH32_reset(state, seed); in XXH32() 411 U64 v3 = seed + 0; in XXH64_endian_align() 467 XXH64_reset(state, seed); in XXH64() 522 state.v3 = seed + 0; in XXH32_reset() [all …]
|
| H A D | xxhash.h | 143 XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t length, unsigned int seed); 147 XXH_PUBLIC_API XXH64_hash_t XXH64 (const void* input, size_t length, unsigned long long seed); 179 XXH_PUBLIC_API XXH_errorcode XXH32_reset (XXH32_state_t* statePtr, unsigned int seed); 183 XXH_PUBLIC_API XXH_errorcode XXH64_reset (XXH64_state_t* statePtr, unsigned long long seed);
|
| /f-stack/dpdk/lib/librte_table/ |
| H A D | rte_table_hash_func.h | 59 uint64_t seed) in rte_table_hash_crc_key8() argument 73 uint64_t seed) in rte_table_hash_crc_key16() argument 81 crc0 = rte_crc32_u64(k0, seed); in rte_table_hash_crc_key16() 92 uint64_t seed) in rte_table_hash_crc_key24() argument 101 crc0 = rte_crc32_u64(k0, seed); in rte_table_hash_crc_key24() 114 uint64_t seed) in rte_table_hash_crc_key32() argument 123 crc0 = rte_crc32_u64(k0, seed); in rte_table_hash_crc_key32() 140 uint64_t seed) in rte_table_hash_crc_key40() argument 166 uint64_t seed) in rte_table_hash_crc_key48() argument 193 uint64_t seed) in rte_table_hash_crc_key56() argument [all …]
|
| H A D | rte_table_hash.h | 60 uint64_t seed); 86 uint64_t seed; member
|
| /f-stack/freebsd/mips/nlm/hal/ |
| H A D | cpucontrol.h | 185 uint32_t seed = nlm_mfcr(MMU_LFSRSEED); in nlm_mmu_lfsr_seed() local 187 seed |= ((thr3_seed & 0x7f) << 23); in nlm_mmu_lfsr_seed() 188 seed |= ((thr2_seed & 0x7f) << 16); in nlm_mmu_lfsr_seed() 189 seed |= ((thr1_seed & 0x7f) << 7); in nlm_mmu_lfsr_seed() 190 seed |= ((thr0_seed & 0x7f) << 0); in nlm_mmu_lfsr_seed() 191 nlm_mtcr(MMU_LFSRSEED, seed); in nlm_mmu_lfsr_seed()
|
| /f-stack/freebsd/contrib/libsodium/test/default/ |
| H A D | kx.c | 14 unsigned char *seed; in tv_kx() local 22 seed = (unsigned char *) sodium_malloc(crypto_kx_SEEDBYTES); in tv_kx() 24 seed[i] = (unsigned char) i; in tv_kx() 28 crypto_kx_seed_keypair(client_pk, client_sk, seed); in tv_kx() 85 crypto_kx_seed_keypair(client_pk, client_sk, seed); in tv_kx() 86 sodium_increment(seed, crypto_kx_SEEDBYTES); in tv_kx() 87 crypto_kx_seed_keypair(server_pk, server_sk, seed); in tv_kx() 132 sodium_free(seed); in tv_kx()
|
| H A D | box_seed.c | 5 static unsigned char seed[32] = { 0x77, 0x07, 0x6d, 0x0a, 0x73, 0x18, 0xa5, variable 18 crypto_box_seed_keypair(pk, sk, seed); in main()
|
| /f-stack/freebsd/kern/ |
| H A D | uipc_mbufhash.c | 62 uint32_t seed; in m_ether_tcpip_hash_init() local 64 seed = arc4random(); in m_ether_tcpip_hash_init() 65 return (fnv_32_buf(&seed, sizeof(seed), FNV1_32_INIT)); in m_ether_tcpip_hash_init() 71 uint32_t seed; in m_infiniband_tcpip_hash_init() local 73 seed = arc4random(); in m_infiniband_tcpip_hash_init() 74 return (fnv_32_buf(&seed, sizeof(seed), FNV1_32_INIT)); in m_infiniband_tcpip_hash_init()
|
| H A D | subr_prng.c | 45 pcg64u_srandom_r(pcg64u_random_t *state64, uint64_t seed) in pcg64u_srandom_r() argument 47 pcg32u_srandom_r(&state64->states[0], seed); in pcg64u_srandom_r() 48 pcg32u_srandom_r(&state64->states[1], seed); in pcg64u_srandom_r()
|
| /f-stack/app/redis-5.0.5/deps/jemalloc/include/jemalloc/internal/ |
| H A D | hash.h | 73 hash_x86_32(const void *key, int len, uint32_t seed) { in hash_x86_32() argument 77 uint32_t h1 = seed; in hash_x86_32() 123 hash_x86_128(const void *key, const int len, uint32_t seed, in hash_x86_128() argument 128 uint32_t h1 = seed; in hash_x86_128() 129 uint32_t h2 = seed; in hash_x86_128() 130 uint32_t h3 = seed; in hash_x86_128() 131 uint32_t h4 = seed; in hash_x86_128() 229 uint64_t h1 = seed; in hash_x64_128() 230 uint64_t h2 = seed; in hash_x64_128() 307 hash_x64_128(key, (int)len, seed, (uint64_t *)r_hash); in hash() [all …]
|
| /f-stack/freebsd/contrib/ck/src/ |
| H A D | ck_ht_hash.h | 119 uint32_t seed, uint32_t * out ) in MurmurHash3_x86_32() argument 125 uint32_t h1 = seed; in MurmurHash3_x86_32() 175 static inline uint64_t MurmurHash64A ( const void * key, int len, uint64_t seed ) in MurmurHash64A() argument 180 uint64_t h = seed ^ (len * m); in MurmurHash64A() 234 static inline uint64_t MurmurHash64B ( const void * key, int len, uint64_t seed ) in MurmurHash64B() argument 239 uint32_t h1 = (uint32_t)(seed) ^ len; in MurmurHash64B() 240 uint32_t h2 = (uint32_t)(seed >> 32); in MurmurHash64B()
|
| /f-stack/freebsd/libkern/ |
| H A D | murmur3_32.c | 45 murmur3_32_hash(const void *data, size_t len, uint32_t seed) in murmur3_32_hash() argument 54 hash = seed; in murmur3_32_hash() 106 murmur3_32_hash32(const uint32_t *data, size_t count, uint32_t seed) in murmur3_32_hash32() argument 112 for (res = count, hash = seed; res > 0; res--, data++) { in murmur3_32_hash32()
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/file_trunc/ |
| H A D | file_trunc.c | 56 static int seed = 0; variable 108 seed = time(NULL); in parse_options() 132 seed = atoi(optarg); in parse_options() 164 (void) fprintf(stderr, "Seed = %d\n", seed); in parse_options() 166 srandom(seed); in parse_options()
|
| /f-stack/freebsd/contrib/zstd/programs/ |
| H A D | datagen.c | 78 static BYTE RDG_genChar(U32* seed, const BYTE* ldt) in RDG_genChar() argument 80 U32 const id = RDG_rand(seed) & LTMASK; in RDG_genChar() 144 void RDG_genBuffer(void* buffer, size_t size, double matchProba, double litProba, unsigned seed) in RDG_genBuffer() argument 146 U32 seed32 = seed; in RDG_genBuffer() 155 void RDG_genStdout(unsigned long long size, double matchProba, double litProba, unsigned seed) in RDG_genStdout() argument 157 U32 seed32 = seed; in RDG_genStdout()
|
| H A D | datagen.h | 17 void RDG_genStdout(unsigned long long size, double matchProba, double litProba, unsigned seed); 18 void RDG_genBuffer(void* buffer, size_t size, double matchProba, double litProba, unsigned seed);
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/readmmap/ |
| H A D | readmmap.c | 58 unsigned seed; in main() local 95 seed = time(NULL); in main() 96 srandom(seed); in main()
|
| /f-stack/lib/ |
| H A D | ff_compat.c | 70 extern unsigned int rand_r(unsigned int *seed); 71 unsigned int seed = 0; variable 299 if (seed == 0) { in arc4random() 300 seed = ff_arc4random(); in arc4random() 302 return (uint32_t)rand_r(&seed); in arc4random()
|
| /f-stack/freebsd/contrib/ncsw/Peripherals/FM/Pcd/ |
| H A D | crc64.h | 345 uint64_t seed) in crc64_compute() argument 348 uint64_t crc = seed; in crc64_compute()
|
| /f-stack/freebsd/contrib/libsodium/test/quirks/ |
| H A D | quirks.h | 41 srandom(unsigned seed) in srandom() argument 43 srand(seed); in srandom()
|
| /f-stack/dpdk/drivers/bus/dpaa/include/ |
| H A D | fsl_fman_crc64.h | 221 static inline uint64_t fman_crc64_finish(uint64_t seed) in fman_crc64_finish() argument 223 return ~seed; in fman_crc64_finish()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_sign/ed25519/ |
| H A D | sign_ed25519.c | 45 crypto_sign_ed25519_sk_to_seed(unsigned char *seed, const unsigned char *sk) in crypto_sign_ed25519_sk_to_seed() argument 47 memmove(seed, sk, crypto_sign_ed25519_SEEDBYTES); in crypto_sign_ed25519_sk_to_seed()
|
| /f-stack/freebsd/contrib/ck/include/ |
| H A D | ck_rhs.h | 88 unsigned long seed; member 108 #define CK_RHS_HASH(T, F, K) F((K), (T)->seed)
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_box/ |
| H A D | crypto_box.c | 66 const unsigned char *seed) in crypto_box_seed_keypair() argument 68 return crypto_box_curve25519xsalsa20poly1305_seed_keypair(pk, sk, seed); in crypto_box_seed_keypair()
|