crypto/heimdal/kadmin/add-random-users.c
89
r1 = rand();
crypto/heimdal/kadmin/add-random-users.c
90
r2 = rand();
crypto/heimdal/kpasswd/kpasswd-generator.c
92
char *name = words[rand() % nwords];
crypto/heimdal/kuser/generate-requests.c
81
char *name = words[rand() % nwords];
crypto/heimdal/lib/hx509/softp11.c
44
#define random() rand()
crypto/krb5/src/lib/crypto/builtin/camellia/camellia-gen.c
30
key[i] = 0xff & rand();
crypto/krb5/src/lib/crypto/builtin/camellia/camellia-gen.c
34
test_case[i].input[j] = 0xff & rand();
crypto/krb5/src/lib/gssapi/krb5/init_sec_context.c
304
junk = rand() & 0xff;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
128
ec = ec_max & rand();
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
179
rrc = rand() & 0xffff;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
255
rrc = rand() & 0xffff;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
475
client_data->seq_num = rand();
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/driver2.c
95
key.size = 128 + (rand()&1023);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/driver2.c
96
content.size = 128 + (rand()&1023);
crypto/libecc/include/libecc/sig/bip0340.h
48
const u8 *m, u32 mlen, int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/include/libecc/sig/eddsa.h
92
const u8 *m, u32 mlen, int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/include/libecc/sig/sig_algs.h
51
int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/include/libecc/sig/sig_algs.h
65
int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/include/libecc/sig/sig_algs_internal.h
158
ATTRIBUTE_WARN_UNUSED_RET int (*rand) (nn_t out, nn_src_t q);
crypto/libecc/include/libecc/sig/sig_algs_internal.h
240
const u8 *m, u32 mlen, int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/include/libecc/sig/sig_algs_internal.h
66
const u8 *m, u32 mlen, int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/src/sig/bign_common.c
561
if(ctx->rand != nn_get_random_mod){
crypto/libecc/src/sig/bign_common.c
572
if(ctx->rand != NULL){
crypto/libecc/src/sig/bign_common.c
576
ret = ctx->rand(&k, q);
crypto/libecc/src/sig/bip0340.c
162
const u8 *m, u32 mlen, int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/src/sig/bip0340.c
246
MUST_HAVE((rand == nn_get_random_mod), ret, err);
crypto/libecc/src/sig/bip0340.c
251
if(rand == NULL){
crypto/libecc/src/sig/bip0340.c
252
rand = nn_get_random_mod;
crypto/libecc/src/sig/bip0340.c
254
ret = rand(&k, &e); EG(ret, err);
crypto/libecc/src/sig/dbign.c
55
ctx->rand = NULL;
crypto/libecc/src/sig/dbign.c
70
MUST_HAVE((ctx != NULL) && (ctx->rand == NULL), ret, err);
crypto/libecc/src/sig/dbign.c
85
MUST_HAVE((ctx != NULL) && (ctx->rand == NULL), ret, err);
crypto/libecc/src/sig/decdsa.c
55
ctx->rand = NULL;
crypto/libecc/src/sig/decdsa.c
70
MUST_HAVE((ctx != NULL) && (ctx->rand == NULL), ret, err);
crypto/libecc/src/sig/decdsa.c
85
MUST_HAVE((ctx != NULL) && (ctx->rand == NULL), ret, err);
crypto/libecc/src/sig/ecdsa_common.c
424
if(ctx->rand != nn_get_random_mod){
crypto/libecc/src/sig/ecdsa_common.c
435
if(ctx->rand != NULL){
crypto/libecc/src/sig/ecdsa_common.c
439
ret = ctx->rand(&k, q);
crypto/libecc/src/sig/ecfsdsa.c
170
MUST_HAVE((ctx->rand == nn_get_random_mod), ret, err);
crypto/libecc/src/sig/ecfsdsa.c
172
MUST_HAVE((ctx->rand != NULL), ret, err);
crypto/libecc/src/sig/ecfsdsa.c
173
ret = ctx->rand(k, q); EG(ret, err);
crypto/libecc/src/sig/ecgdsa.c
282
MUST_HAVE(ctx->rand == nn_get_random_mod, ret, err);
crypto/libecc/src/sig/ecgdsa.c
284
MUST_HAVE(ctx->rand != NULL, ret, err);
crypto/libecc/src/sig/ecgdsa.c
286
ret = ctx->rand(&k, q); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
381
MUST_HAVE((ctx->rand == nn_get_random_mod), ret, err);
crypto/libecc/src/sig/eckcdsa.c
383
MUST_HAVE((ctx->rand != NULL), ret, err);
crypto/libecc/src/sig/eckcdsa.c
384
ret = ctx->rand(&k, q); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
260
MUST_HAVE((ctx->rand == nn_get_random_mod), ret, err);
crypto/libecc/src/sig/ecrdsa.c
262
MUST_HAVE((ctx->rand != NULL), ret, err);
crypto/libecc/src/sig/ecrdsa.c
263
ret = ctx->rand(&k, q); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
187
MUST_HAVE((ctx->rand == nn_get_random_mod), ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
189
MUST_HAVE((ctx->rand != NULL), ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
190
ret = ctx->rand(&k, q); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1558
const u8 *m, u32 mlen, int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/src/sig/eddsa.c
1600
MUST_HAVE((rand == NULL), ret, err);
crypto/libecc/src/sig/fuzzing_ecdsa.c
146
ret = ctx->rand(&k, q); EG(ret, err);
crypto/libecc/src/sig/fuzzing_ecgdsa.c
145
ret = ctx->rand(&k, q); EG(ret, err);
crypto/libecc/src/sig/fuzzing_ecrdsa.c
148
ret = ctx->rand(&k, q); EG(ret, err);
crypto/libecc/src/sig/sig_algs.c
296
int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/src/sig/sig_algs.c
345
if (rand) {
crypto/libecc/src/sig/sig_algs.c
346
MUST_HAVE((rand == nn_get_random_mod), ret, err);
crypto/libecc/src/sig/sig_algs.c
348
rand = nn_get_random_mod;
crypto/libecc/src/sig/sig_algs.c
351
if (!rand) {
crypto/libecc/src/sig/sig_algs.c
352
rand = nn_get_random_mod;
crypto/libecc/src/sig/sig_algs.c
362
ctx->rand = rand;
crypto/libecc/src/sig/sig_algs.c
456
int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/src/sig/sig_algs.c
463
ret = _ec_sign_init(&ctx, key_pair, rand, sig_type,
crypto/libecc/src/sig/sig_algs.c
475
int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/src/sig/sig_algs.c
485
ret = sm->sign(sig, siglen, key_pair, m, mlen, rand,
crypto/libecc/src/sig/sm2.c
376
MUST_HAVE(ctx->rand == nn_get_random_mod, ret, err);
crypto/libecc/src/sig/sm2.c
378
ret = ctx->rand(&k, q); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
125
int (*rand) (nn_t out, nn_src_t q),
crypto/libecc/src/tests/ec_self_tests_core.c
139
ret = _ec_sign_init(&ctx, key_pair, rand, sig_type, hash_type, adata, adata_len);
crypto/openssl/apps/list.c
391
static void collect_rands(EVP_RAND *rand, void *stack)
crypto/openssl/apps/list.c
395
if (is_rand_fetchable(rand)
crypto/openssl/apps/list.c
396
&& EVP_RAND_up_ref(rand)
crypto/openssl/apps/list.c
397
&& sk_EVP_RAND_push(rand_stack, rand) <= 0)
crypto/openssl/apps/list.c
398
EVP_RAND_free(rand); /* up-ref successful but push to stack failed */
crypto/openssl/apps/list.c
441
EVP_RAND *rand;
crypto/openssl/apps/list.c
450
rand = EVP_RAND_CTX_get0_rand(drbg);
crypto/openssl/apps/list.c
452
BIO_printf(bio_out, " %s", EVP_RAND_get0_name(rand));
crypto/openssl/apps/list.c
454
OSSL_PROVIDER_get0_name(EVP_RAND_get0_provider(rand)));
crypto/openssl/apps/list.c
472
gettables = EVP_RAND_gettable_ctx_params(rand);
crypto/openssl/apps/list.c
59
IS_FETCHABLE(rand, EVP_RAND)
crypto/openssl/crypto/evp/evp_rand.c
103
static int evp_rand_lock(EVP_RAND_CTX *rand)
crypto/openssl/crypto/evp/evp_rand.c
105
if (rand->meth->lock != NULL)
crypto/openssl/crypto/evp/evp_rand.c
106
return rand->meth->lock(rand->algctx);
crypto/openssl/crypto/evp/evp_rand.c
111
static void evp_rand_unlock(EVP_RAND_CTX *rand)
crypto/openssl/crypto/evp/evp_rand.c
113
if (rand->meth->unlock != NULL)
crypto/openssl/crypto/evp/evp_rand.c
114
rand->meth->unlock(rand->algctx);
crypto/openssl/crypto/evp/evp_rand.c
122
EVP_RAND *rand = NULL;
crypto/openssl/crypto/evp/evp_rand.c
128
if ((rand = evp_rand_new()) == NULL) {
crypto/openssl/crypto/evp/evp_rand.c
132
rand->name_id = name_id;
crypto/openssl/crypto/evp/evp_rand.c
133
if ((rand->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL) {
crypto/openssl/crypto/evp/evp_rand.c
134
evp_rand_free(rand);
crypto/openssl/crypto/evp/evp_rand.c
137
rand->description = algodef->algorithm_description;
crypto/openssl/crypto/evp/evp_rand.c
138
rand->dispatch = fns;
crypto/openssl/crypto/evp/evp_rand.c
142
if (rand->newctx != NULL)
crypto/openssl/crypto/evp/evp_rand.c
144
rand->newctx = OSSL_FUNC_rand_newctx(fns);
crypto/openssl/crypto/evp/evp_rand.c
148
if (rand->freectx != NULL)
crypto/openssl/crypto/evp/evp_rand.c
150
rand->freectx = OSSL_FUNC_rand_freectx(fns);
crypto/openssl/crypto/evp/evp_rand.c
154
if (rand->instantiate != NULL)
crypto/openssl/crypto/evp/evp_rand.c
156
rand->instantiate = OSSL_FUNC_rand_instantiate(fns);
crypto/openssl/crypto/evp/evp_rand.c
160
if (rand->uninstantiate != NULL)
crypto/openssl/crypto/evp/evp_rand.c
162
rand->uninstantiate = OSSL_FUNC_rand_uninstantiate(fns);
crypto/openssl/crypto/evp/evp_rand.c
166
if (rand->generate != NULL)
crypto/openssl/crypto/evp/evp_rand.c
168
rand->generate = OSSL_FUNC_rand_generate(fns);
crypto/openssl/crypto/evp/evp_rand.c
172
if (rand->reseed != NULL)
crypto/openssl/crypto/evp/evp_rand.c
174
rand->reseed = OSSL_FUNC_rand_reseed(fns);
crypto/openssl/crypto/evp/evp_rand.c
177
if (rand->nonce != NULL)
crypto/openssl/crypto/evp/evp_rand.c
179
rand->nonce = OSSL_FUNC_rand_nonce(fns);
crypto/openssl/crypto/evp/evp_rand.c
182
if (rand->enable_locking != NULL)
crypto/openssl/crypto/evp/evp_rand.c
184
rand->enable_locking = OSSL_FUNC_rand_enable_locking(fns);
crypto/openssl/crypto/evp/evp_rand.c
188
if (rand->lock != NULL)
crypto/openssl/crypto/evp/evp_rand.c
190
rand->lock = OSSL_FUNC_rand_lock(fns);
crypto/openssl/crypto/evp/evp_rand.c
194
if (rand->unlock != NULL)
crypto/openssl/crypto/evp/evp_rand.c
196
rand->unlock = OSSL_FUNC_rand_unlock(fns);
crypto/openssl/crypto/evp/evp_rand.c
200
if (rand->gettable_params != NULL)
crypto/openssl/crypto/evp/evp_rand.c
202
rand->gettable_params = OSSL_FUNC_rand_gettable_params(fns);
crypto/openssl/crypto/evp/evp_rand.c
205
if (rand->gettable_ctx_params != NULL)
crypto/openssl/crypto/evp/evp_rand.c
207
rand->gettable_ctx_params = OSSL_FUNC_rand_gettable_ctx_params(fns);
crypto/openssl/crypto/evp/evp_rand.c
210
if (rand->settable_ctx_params != NULL)
crypto/openssl/crypto/evp/evp_rand.c
212
rand->settable_ctx_params = OSSL_FUNC_rand_settable_ctx_params(fns);
crypto/openssl/crypto/evp/evp_rand.c
215
if (rand->get_params != NULL)
crypto/openssl/crypto/evp/evp_rand.c
217
rand->get_params = OSSL_FUNC_rand_get_params(fns);
crypto/openssl/crypto/evp/evp_rand.c
220
if (rand->get_ctx_params != NULL)
crypto/openssl/crypto/evp/evp_rand.c
222
rand->get_ctx_params = OSSL_FUNC_rand_get_ctx_params(fns);
crypto/openssl/crypto/evp/evp_rand.c
226
if (rand->set_ctx_params != NULL)
crypto/openssl/crypto/evp/evp_rand.c
228
rand->set_ctx_params = OSSL_FUNC_rand_set_ctx_params(fns);
crypto/openssl/crypto/evp/evp_rand.c
231
if (rand->verify_zeroization != NULL)
crypto/openssl/crypto/evp/evp_rand.c
233
rand->verify_zeroization = OSSL_FUNC_rand_verify_zeroization(fns);
crypto/openssl/crypto/evp/evp_rand.c
239
if (rand->get_seed != NULL)
crypto/openssl/crypto/evp/evp_rand.c
241
rand->get_seed = OSSL_FUNC_rand_get_seed(fns);
crypto/openssl/crypto/evp/evp_rand.c
244
if (rand->clear_seed != NULL)
crypto/openssl/crypto/evp/evp_rand.c
246
rand->clear_seed = OSSL_FUNC_rand_clear_seed(fns);
crypto/openssl/crypto/evp/evp_rand.c
267
evp_rand_free(rand);
crypto/openssl/crypto/evp/evp_rand.c
273
evp_rand_free(rand);
crypto/openssl/crypto/evp/evp_rand.c
277
rand->prov = prov;
crypto/openssl/crypto/evp/evp_rand.c
279
return rand;
crypto/openssl/crypto/evp/evp_rand.c
290
int EVP_RAND_up_ref(EVP_RAND *rand)
crypto/openssl/crypto/evp/evp_rand.c
292
return evp_rand_up_ref(rand);
crypto/openssl/crypto/evp/evp_rand.c
295
void EVP_RAND_free(EVP_RAND *rand)
crypto/openssl/crypto/evp/evp_rand.c
297
evp_rand_free(rand);
crypto/openssl/crypto/evp/evp_rand.c
300
int evp_rand_get_number(const EVP_RAND *rand)
crypto/openssl/crypto/evp/evp_rand.c
302
return rand->name_id;
crypto/openssl/crypto/evp/evp_rand.c
305
const char *EVP_RAND_get0_name(const EVP_RAND *rand)
crypto/openssl/crypto/evp/evp_rand.c
307
return rand->type_name;
crypto/openssl/crypto/evp/evp_rand.c
310
const char *EVP_RAND_get0_description(const EVP_RAND *rand)
crypto/openssl/crypto/evp/evp_rand.c
312
return rand->description;
crypto/openssl/crypto/evp/evp_rand.c
315
int EVP_RAND_is_a(const EVP_RAND *rand, const char *name)
crypto/openssl/crypto/evp/evp_rand.c
317
return rand != NULL && evp_is_a(rand->prov, rand->name_id, NULL, name);
crypto/openssl/crypto/evp/evp_rand.c
320
const OSSL_PROVIDER *EVP_RAND_get0_provider(const EVP_RAND *rand)
crypto/openssl/crypto/evp/evp_rand.c
322
return rand->prov;
crypto/openssl/crypto/evp/evp_rand.c
325
int EVP_RAND_get_params(EVP_RAND *rand, OSSL_PARAM params[])
crypto/openssl/crypto/evp/evp_rand.c
327
if (rand->get_params != NULL)
crypto/openssl/crypto/evp/evp_rand.c
328
return rand->get_params(params);
crypto/openssl/crypto/evp/evp_rand.c
339
EVP_RAND_CTX *EVP_RAND_CTX_new(EVP_RAND *rand, EVP_RAND_CTX *parent)
crypto/openssl/crypto/evp/evp_rand.c
345
if (rand == NULL) {
crypto/openssl/crypto/evp/evp_rand.c
367
if ((ctx->algctx = rand->newctx(ossl_provider_ctx(rand->prov), parent_ctx,
crypto/openssl/crypto/evp/evp_rand.c
370
|| !EVP_RAND_up_ref(rand)) {
crypto/openssl/crypto/evp/evp_rand.c
372
rand->freectx(ctx->algctx);
crypto/openssl/crypto/evp/evp_rand.c
378
ctx->meth = rand;
crypto/openssl/crypto/evp/evp_rand.c
444
const OSSL_PARAM *EVP_RAND_gettable_params(const EVP_RAND *rand)
crypto/openssl/crypto/evp/evp_rand.c
446
if (rand->gettable_params == NULL)
crypto/openssl/crypto/evp/evp_rand.c
448
return rand->gettable_params(ossl_provider_ctx(EVP_RAND_get0_provider(rand)));
crypto/openssl/crypto/evp/evp_rand.c
451
const OSSL_PARAM *EVP_RAND_gettable_ctx_params(const EVP_RAND *rand)
crypto/openssl/crypto/evp/evp_rand.c
455
if (rand->gettable_ctx_params == NULL)
crypto/openssl/crypto/evp/evp_rand.c
457
provctx = ossl_provider_ctx(EVP_RAND_get0_provider(rand));
crypto/openssl/crypto/evp/evp_rand.c
458
return rand->gettable_ctx_params(NULL, provctx);
crypto/openssl/crypto/evp/evp_rand.c
461
const OSSL_PARAM *EVP_RAND_settable_ctx_params(const EVP_RAND *rand)
crypto/openssl/crypto/evp/evp_rand.c
465
if (rand->settable_ctx_params == NULL)
crypto/openssl/crypto/evp/evp_rand.c
467
provctx = ossl_provider_ctx(EVP_RAND_get0_provider(rand));
crypto/openssl/crypto/evp/evp_rand.c
468
return rand->settable_ctx_params(NULL, provctx);
crypto/openssl/crypto/evp/evp_rand.c
492
void (*fn)(EVP_RAND *rand, void *arg),
crypto/openssl/crypto/evp/evp_rand.c
501
int EVP_RAND_names_do_all(const EVP_RAND *rand,
crypto/openssl/crypto/evp/evp_rand.c
505
if (rand->prov != NULL)
crypto/openssl/crypto/evp/evp_rand.c
506
return evp_names_do_all(rand->prov, rand->name_id, fn, data);
crypto/openssl/crypto/evp/evp_rand.c
55
EVP_RAND *rand = (EVP_RAND *)vrand;
crypto/openssl/crypto/evp/evp_rand.c
58
if (rand != NULL)
crypto/openssl/crypto/evp/evp_rand.c
59
return CRYPTO_UP_REF(&rand->refcnt, &ref);
crypto/openssl/crypto/evp/evp_rand.c
65
EVP_RAND *rand = (EVP_RAND *)vrand;
crypto/openssl/crypto/evp/evp_rand.c
68
if (rand == NULL)
crypto/openssl/crypto/evp/evp_rand.c
70
CRYPTO_DOWN_REF(&rand->refcnt, &ref);
crypto/openssl/crypto/evp/evp_rand.c
73
OPENSSL_free(rand->type_name);
crypto/openssl/crypto/evp/evp_rand.c
74
ossl_provider_free(rand->prov);
crypto/openssl/crypto/evp/evp_rand.c
75
CRYPTO_FREE_REF(&rand->refcnt);
crypto/openssl/crypto/evp/evp_rand.c
76
OPENSSL_free(rand);
crypto/openssl/crypto/evp/evp_rand.c
81
EVP_RAND *rand = OPENSSL_zalloc(sizeof(*rand));
crypto/openssl/crypto/evp/evp_rand.c
83
if (rand == NULL)
crypto/openssl/crypto/evp/evp_rand.c
86
if (!CRYPTO_NEW_REF(&rand->refcnt, 1)) {
crypto/openssl/crypto/evp/evp_rand.c
87
OPENSSL_free(rand);
crypto/openssl/crypto/evp/evp_rand.c
90
return rand;
crypto/openssl/crypto/evp/evp_rand.c
94
int EVP_RAND_enable_locking(EVP_RAND_CTX *rand)
crypto/openssl/crypto/evp/evp_rand.c
96
if (rand->meth->enable_locking != NULL)
crypto/openssl/crypto/evp/evp_rand.c
97
return rand->meth->enable_locking(rand->algctx);
crypto/openssl/crypto/mem.c
133
#define random() rand()
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
366
const uint8_t *rand, size_t rand_len, int encode,
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
389
ret = ml_dsa_sign_internal(priv, msg_is_mu, m, m_len, rand, rand_len, sig);
crypto/openssl/crypto/rand/rand_lib.c
412
EVP_RAND_CTX *rand;
crypto/openssl/crypto/rand/rand_lib.c
420
if ((rand = RAND_get0_primary(NULL)) == NULL)
crypto/openssl/crypto/rand/rand_lib.c
422
return EVP_RAND_get_state(rand) == EVP_RAND_STATE_READY;
crypto/openssl/crypto/rand/rand_lib.c
443
EVP_RAND_CTX *rand;
crypto/openssl/crypto/rand/rand_lib.c
464
rand = rand_get0_private(ctx, dgbl);
crypto/openssl/crypto/rand/rand_lib.c
465
if (rand != NULL)
crypto/openssl/crypto/rand/rand_lib.c
466
return EVP_RAND_generate(rand, buf, num, strength, 0, NULL, 0);
crypto/openssl/crypto/rand/rand_lib.c
482
EVP_RAND_CTX *rand;
crypto/openssl/crypto/rand/rand_lib.c
504
rand = rand_get0_public(ctx, dgbl);
crypto/openssl/crypto/rand/rand_lib.c
505
if (rand != NULL)
crypto/openssl/crypto/rand/rand_lib.c
506
return EVP_RAND_generate(rand, buf, num, strength, 0, NULL, 0);
crypto/openssl/crypto/rand/rand_lib.c
595
EVP_RAND_CTX *rand;
crypto/openssl/crypto/rand/rand_lib.c
600
rand = CRYPTO_THREAD_get_local(&dgbl->public);
crypto/openssl/crypto/rand/rand_lib.c
602
EVP_RAND_CTX_free(rand);
crypto/openssl/crypto/rand/rand_lib.c
604
rand = CRYPTO_THREAD_get_local(&dgbl->private);
crypto/openssl/crypto/rand/rand_lib.c
606
EVP_RAND_CTX_free(rand);
crypto/openssl/crypto/rand/rand_lib.c
612
EVP_RAND *rand;
crypto/openssl/crypto/rand/rand_lib.c
629
rand = EVP_RAND_fetch(libctx, name, propq);
crypto/openssl/crypto/rand/rand_lib.c
630
if (rand == NULL) {
crypto/openssl/crypto/rand/rand_lib.c
634
ctx = EVP_RAND_CTX_new(rand, NULL);
crypto/openssl/crypto/rand/rand_lib.c
635
EVP_RAND_free(rand);
crypto/openssl/crypto/rand/rand_lib.c
672
EVP_RAND *rand;
crypto/openssl/crypto/rand/rand_lib.c
684
rand = EVP_RAND_fetch(libctx, name, dgbl->rng_propq);
crypto/openssl/crypto/rand/rand_lib.c
685
if (rand == NULL) {
crypto/openssl/crypto/rand/rand_lib.c
689
prov_name = ossl_provider_name(EVP_RAND_get0_provider(rand));
crypto/openssl/crypto/rand/rand_lib.c
690
ctx = EVP_RAND_CTX_new(rand, parent);
crypto/openssl/crypto/rand/rand_lib.c
691
EVP_RAND_free(rand);
crypto/openssl/crypto/rand/rand_lib.c
733
EVP_RAND *rand;
crypto/openssl/crypto/rand/rand_lib.c
736
rand = EVP_RAND_fetch(libctx, "CRNG-TEST", "-fips");
crypto/openssl/crypto/rand/rand_lib.c
737
if (rand == NULL) {
crypto/openssl/crypto/rand/rand_lib.c
741
ctx = EVP_RAND_CTX_new(rand, parent);
crypto/openssl/crypto/rand/rand_lib.c
742
EVP_RAND_free(rand);
crypto/openssl/crypto/rand/rand_lib.c
843
EVP_RAND_CTX *rand, *primary;
crypto/openssl/crypto/rand/rand_lib.c
848
rand = CRYPTO_THREAD_get_local(&dgbl->public);
crypto/openssl/crypto/rand/rand_lib.c
849
if (rand == NULL) {
crypto/openssl/crypto/rand/rand_lib.c
865
rand = rand_new_drbg(ctx, primary, SECONDARY_RESEED_INTERVAL,
crypto/openssl/crypto/rand/rand_lib.c
867
CRYPTO_THREAD_set_local(&dgbl->public, rand);
crypto/openssl/crypto/rand/rand_lib.c
869
return rand;
crypto/openssl/crypto/rand/rand_lib.c
885
EVP_RAND_CTX *rand, *primary;
crypto/openssl/crypto/rand/rand_lib.c
887
rand = CRYPTO_THREAD_get_local(&dgbl->private);
crypto/openssl/crypto/rand/rand_lib.c
888
if (rand == NULL) {
crypto/openssl/crypto/rand/rand_lib.c
904
rand = rand_new_drbg(ctx, primary, SECONDARY_RESEED_INTERVAL,
crypto/openssl/crypto/rand/rand_lib.c
906
CRYPTO_THREAD_set_local(&dgbl->private, rand);
crypto/openssl/crypto/rand/rand_lib.c
908
return rand;
crypto/openssl/crypto/rand/rand_lib.c
934
int RAND_set0_public(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand)
crypto/openssl/crypto/rand/rand_lib.c
943
if ((r = CRYPTO_THREAD_set_local(&dgbl->public, rand)) > 0)
crypto/openssl/crypto/rand/rand_lib.c
948
int RAND_set0_private(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand)
crypto/openssl/crypto/rand/rand_lib.c
957
if ((r = CRYPTO_THREAD_set_local(&dgbl->private, rand)) > 0)
crypto/openssl/crypto/rand/rand_uniform.c
28
uint32_t f2, rand; /* extra fractional part and random material */
crypto/openssl/crypto/rand/rand_uniform.c
41
if (RAND_bytes_ex(ctx, (unsigned char *)&rand, sizeof(rand), 0) <= 0) {
crypto/openssl/crypto/rand/rand_uniform.c
56
prod = (uint64_t)upper * rand;
crypto/openssl/crypto/rand/rand_uniform.c
77
if (RAND_bytes_ex(ctx, (unsigned char *)&rand, sizeof(rand), 0) <= 0) {
crypto/openssl/crypto/rand/rand_uniform.c
81
prod = (uint64_t)upper * rand;
crypto/openssl/fuzz/provider.c
58
DEFINE_ALGORITHMS(rand, EVP_RAND)
crypto/openssl/include/crypto/evp.h
982
int evp_rand_get_number(const EVP_RAND *rand);
crypto/openssl/include/crypto/ml_dsa.h
112
const uint8_t *rand, size_t rand_len, int encode,
crypto/openssl/include/openssl/evp.h
1291
int EVP_RAND_up_ref(EVP_RAND *rand);
crypto/openssl/include/openssl/evp.h
1292
void EVP_RAND_free(EVP_RAND *rand);
crypto/openssl/include/openssl/evp.h
1293
const char *EVP_RAND_get0_name(const EVP_RAND *rand);
crypto/openssl/include/openssl/evp.h
1295
int EVP_RAND_is_a(const EVP_RAND *rand, const char *name);
crypto/openssl/include/openssl/evp.h
1296
const OSSL_PROVIDER *EVP_RAND_get0_provider(const EVP_RAND *rand);
crypto/openssl/include/openssl/evp.h
1297
int EVP_RAND_get_params(EVP_RAND *rand, OSSL_PARAM params[]);
crypto/openssl/include/openssl/evp.h
1299
EVP_RAND_CTX *EVP_RAND_CTX_new(EVP_RAND *rand, EVP_RAND_CTX *parent);
crypto/openssl/include/openssl/evp.h
1305
const OSSL_PARAM *EVP_RAND_gettable_params(const EVP_RAND *rand);
crypto/openssl/include/openssl/evp.h
1306
const OSSL_PARAM *EVP_RAND_gettable_ctx_params(const EVP_RAND *rand);
crypto/openssl/include/openssl/evp.h
1307
const OSSL_PARAM *EVP_RAND_settable_ctx_params(const EVP_RAND *rand);
crypto/openssl/include/openssl/evp.h
1312
void (*fn)(EVP_RAND *rand, void *arg),
crypto/openssl/include/openssl/evp.h
1314
int EVP_RAND_names_do_all(const EVP_RAND *rand,
crypto/openssl/include/openssl/rand.h
87
int RAND_set0_public(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
crypto/openssl/include/openssl/rand.h
88
int RAND_set0_private(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
crypto/openssl/providers/fips/self_test_kats.c
1025
EVP_RAND *rand;
crypto/openssl/providers/fips/self_test_kats.c
1038
rand = EVP_RAND_fetch(ctx, "TEST-RAND", NULL);
crypto/openssl/providers/fips/self_test_kats.c
1039
if (rand == NULL)
crypto/openssl/providers/fips/self_test_kats.c
1042
parent_rand = EVP_RAND_CTX_new(rand, NULL);
crypto/openssl/providers/fips/self_test_kats.c
1043
EVP_RAND_free(rand);
crypto/openssl/providers/fips/self_test_kats.c
1052
rand = EVP_RAND_fetch(ctx, "HASH-DRBG", NULL);
crypto/openssl/providers/fips/self_test_kats.c
1053
if (rand == NULL)
crypto/openssl/providers/fips/self_test_kats.c
1056
kat_rand = EVP_RAND_CTX_new(rand, parent_rand);
crypto/openssl/providers/fips/self_test_kats.c
1057
EVP_RAND_free(rand);
crypto/openssl/providers/fips/self_test_kats.c
1125
EVP_RAND *rand;
crypto/openssl/providers/fips/self_test_kats.c
1127
rand = EVP_RAND_fetch(libctx, "TEST-RAND", NULL);
crypto/openssl/providers/fips/self_test_kats.c
1128
if (rand == NULL)
crypto/openssl/providers/fips/self_test_kats.c
1131
main_rand = EVP_RAND_CTX_new(rand, NULL);
crypto/openssl/providers/fips/self_test_kats.c
1132
EVP_RAND_free(rand);
crypto/openssl/providers/fips/self_test_kats.c
296
EVP_RAND *rand;
crypto/openssl/providers/fips/self_test_kats.c
306
rand = EVP_RAND_fetch(libctx, "TEST-RAND", NULL);
crypto/openssl/providers/fips/self_test_kats.c
307
if (rand == NULL)
crypto/openssl/providers/fips/self_test_kats.c
310
test = EVP_RAND_CTX_new(rand, NULL);
crypto/openssl/providers/fips/self_test_kats.c
311
EVP_RAND_free(rand);
crypto/openssl/providers/fips/self_test_kats.c
320
rand = EVP_RAND_fetch(libctx, t->algorithm, NULL);
crypto/openssl/providers/fips/self_test_kats.c
321
if (rand == NULL)
crypto/openssl/providers/fips/self_test_kats.c
324
drbg = EVP_RAND_CTX_new(rand, test);
crypto/openssl/providers/fips/self_test_kats.c
325
EVP_RAND_free(rand);
crypto/openssl/test/acvp_test.c
1580
EVP_RAND *rand = NULL;
crypto/openssl/test/acvp_test.c
1589
if (!TEST_ptr(rand = EVP_RAND_fetch(libctx, "TEST-RAND", "-fips"))
crypto/openssl/test/acvp_test.c
1590
|| !TEST_ptr(parent = EVP_RAND_CTX_new(rand, NULL)))
crypto/openssl/test/acvp_test.c
1592
EVP_RAND_free(rand);
crypto/openssl/test/acvp_test.c
1593
rand = NULL;
crypto/openssl/test/acvp_test.c
1601
if (!TEST_ptr(rand = EVP_RAND_fetch(libctx, tst->drbg_name, ""))
crypto/openssl/test/acvp_test.c
1602
|| !TEST_ptr(ctx = EVP_RAND_CTX_new(rand, parent)))
crypto/openssl/test/acvp_test.c
1654
EVP_RAND_free(rand);
crypto/openssl/test/drbgtest.c
781
EVP_RAND *rand = NULL;
crypto/openssl/test/drbgtest.c
788
if (!TEST_ptr(rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL))
crypto/openssl/test/drbgtest.c
789
|| !TEST_ptr(drbg = EVP_RAND_CTX_new(rand, parent))
crypto/openssl/test/drbgtest.c
794
EVP_RAND_free(rand);
crypto/openssl/test/evp_extra_test.c
4348
EVP_RAND *rand;
crypto/openssl/test/evp_extra_test.c
4358
|| !TEST_ptr(rand = EVP_RAND_fetch(testctx, "TEST-RAND", testpropq)))
crypto/openssl/test/evp_extra_test.c
4360
ctx = EVP_RAND_CTX_new(rand, NULL);
crypto/openssl/test/evp_extra_test.c
4361
EVP_RAND_free(rand);
crypto/openssl/test/evp_test.c
3545
EVP_RAND *rand;
crypto/openssl/test/evp_test.c
3553
rand = EVP_RAND_fetch(libctx, "TEST-RAND", "-fips");
crypto/openssl/test/evp_test.c
3554
if (rand == NULL)
crypto/openssl/test/evp_test.c
3556
rdata->parent = EVP_RAND_CTX_new(rand, NULL);
crypto/openssl/test/evp_test.c
3557
EVP_RAND_free(rand);
crypto/openssl/test/evp_test.c
3565
rand = EVP_RAND_fetch(libctx, name, propquery);
crypto/openssl/test/evp_test.c
3566
if (rand == NULL)
crypto/openssl/test/evp_test.c
3568
rdata->ctx = EVP_RAND_CTX_new(rand, rdata->parent);
crypto/openssl/test/evp_test.c
3569
EVP_RAND_free(rand);
include/stdlib.h
109
int rand(void);
lib/libc/stdio/mktemp.c
118
uint32_t rand;
lib/libc/stdio/mktemp.c
144
rand = arc4random_uniform(sizeof(padchar) - 1);
lib/libc/stdio/mktemp.c
145
*trv-- = padchar[rand];
lib/libc/stdlib/rand.c
141
__sym_compat(rand, __rand_fbsd12, FBSD_1.0);
lib/libc/tests/sys/sendfile_test.c
89
random_port = rand() % (portrange_last - portrange_first) +
lib/libunbound/config.h
1462
#define random rand /* on win32, for tests only (bad random) */
sbin/ipf/ipsend/iptests.c
1337
*s = (rand() >> 13) & 0xff;
sbin/ipf/ipsend/iptests.c
1352
*s = (rand() >> 13) & 0xff;
sbin/ipf/ipsend/iptests.c
335
if ((rand() & 0x1f) != 0) {
sbin/ipf/ipsend/iptests.c
345
if ((rand() & 0x1f) != 0) {
sbin/ipf/ipsend/iptests.c
355
if ((rand() & 0x1f) != 0) {
share/examples/libvgl/demo.c
108
VGLBitmapCopy(VGLDisplay, rand()%xsize, rand()%ysize,
share/examples/libvgl/demo.c
109
VGLDisplay, rand()%xsize, rand()%ysize,
share/examples/libvgl/demo.c
110
rand()%xsize, rand()%ysize);
share/examples/libvgl/demo.c
111
VGLLine(VGLDisplay, rand()%xsize, rand()%ysize,
share/examples/libvgl/demo.c
112
rand()%xsize, rand()%ysize, rand()%256);
share/examples/libvgl/demo.c
113
VGLEllipse(VGLDisplay, rand()%xsize, rand()%ysize,
share/examples/libvgl/demo.c
114
rand()%xsize/2, rand()%ysize/2, rand()%256);
share/examples/libvgl/demo.c
115
rand();
sys/geom/multipath/g_multipath.c
907
u_long rand = random();
sys/geom/multipath/g_multipath.c
909
snprintf(buf, sizeof(buf), "%s-%lu", md.md_name, rand);
sys/geom/shsec/g_shsec.c
283
g_shsec_xor2(uint32_t *rand, uint32_t *dst, ssize_t len)
sys/geom/shsec/g_shsec.c
287
*rand = arc4random();
sys/geom/shsec/g_shsec.c
288
*dst = *dst ^ *rand++;
sys/netgraph/ng_pipe.c
737
static uint64_t rand, oldrand;
sys/netgraph/ng_pipe.c
834
oldrand = rand;
sys/netgraph/ng_pipe.c
835
rand = prng32_bounded(1U << 31);
sys/netgraph/ng_pipe.c
836
if (((oldrand ^ rand) << 17) >=
sys/netinet/cc/cc_chd.c
164
uint32_t rand, p;
sys/netinet/cc/cc_chd.c
166
rand = prng32();
sys/netinet/cc/cc_chd.c
178
if (V_chd_loss_fair && rand < p)
sys/netinet/cc/cc_chd.c
186
return (rand < p);
sys/netpfil/ipfilter/netinet/radix_ipf.c
1439
choice = rand() % (nitems - 1);
sys/ofed/drivers/infiniband/core/ib_cma.c
3222
u32 rand;
sys/ofed/drivers/infiniband/core/ib_cma.c
3226
get_random_bytes(&rand, sizeof(rand));
sys/ofed/drivers/infiniband/core/ib_cma.c
3227
rover = rand % remaining + low;
tests/sys/acl/acl-api-test.c
63
if (rand() % 2)
tests/sys/aio/aio_kqueue_test.c
132
result = rand();
tests/sys/netgraph/vlan_rotate.c
191
int rot = rand() % (2 * len - 1) - len + 1;
tests/sys/netgraph/vlan_rotate.c
196
switch (rand() % 3)
tests/sys/netinet/libalias/util.c
63
int res, r = rand();
tests/sys/netinet/libalias/util.h
62
return min + rand()%(max - min);
tests/sys/netmap/ctrl-api-test.c
2208
idx = rand() % 8000 + 100;
tests/sys/netmap/ctrl-api-test.c
2210
idx = rand() % 800 + 100;
usr.sbin/route6d/route6d.c
3444
double r = rand();
usr.sbin/route6d/route6d.c
3457
double r = rand();