Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/freebsd/crypto/openssl/crypto/evp/
H A Devp_rand.c54 EVP_RAND *rand = (EVP_RAND *)vrand; in evp_rand_up_ref() local
57 if (rand != NULL) in evp_rand_up_ref()
58 return CRYPTO_UP_REF(&rand->refcnt, &ref, rand->refcnt_lock); in evp_rand_up_ref()
64 EVP_RAND *rand = (EVP_RAND *)vrand; in evp_rand_free() local
67 if (rand == NULL) in evp_rand_free()
69 CRYPTO_DOWN_REF(&rand->refcnt, &ref, rand->refcnt_lock); in evp_rand_free()
72 OPENSSL_free(rand->type_name); in evp_rand_free()
73 ossl_provider_free(rand->prov); in evp_rand_free()
74 CRYPTO_THREAD_lock_free(rand->refcnt_lock); in evp_rand_free()
75 OPENSSL_free(rand); in evp_rand_free()
[all …]
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Drandom.cppm
/freebsd/share/examples/libvgl/
H A Ddemo.c108 VGLBitmapCopy(VGLDisplay, rand()%xsize, rand()%ysize, in main()
109 VGLDisplay, rand()%xsize, rand()%ysize, in main()
110 rand()%xsize, rand()%ysize); in main()
111 VGLLine(VGLDisplay, rand()%xsize, rand()%ysize, in main()
112 rand()%xsize, rand()%ysize, rand()%256); in main()
113 VGLEllipse(VGLDisplay, rand()%xsize, rand()%ysize, in main()
114 rand()%xsize/2, rand()%ysize/2, rand()%256); in main()
115 rand(); in main()
/freebsd/crypto/openssl/crypto/rand/
H A Drand_lib.c298 EVP_RAND_CTX *rand; in RAND_status() local
306 if ((rand = RAND_get0_primary(NULL)) == NULL) in RAND_status()
308 return EVP_RAND_get_state(rand) == EVP_RAND_STATE_READY; in RAND_status()
328 EVP_RAND_CTX *rand; in RAND_priv_bytes_ex() local
340 rand = RAND_get0_private(ctx); in RAND_priv_bytes_ex()
341 if (rand != NULL) in RAND_priv_bytes_ex()
342 return EVP_RAND_generate(rand, buf, num, strength, 0, NULL, 0); in RAND_priv_bytes_ex()
357 EVP_RAND_CTX *rand; in RAND_bytes_ex() local
369 rand = RAND_get0_public(ctx); in RAND_bytes_ex()
370 if (rand != NULL) in RAND_bytes_ex()
[all …]
/freebsd/crypto/openssl/doc/man7/
H A DEVP_RAND-SEED-SRC.pod13 building using the B<--with-rand-seed=> option. By default, operating system
41 EVP_RAND *rand = EVP_RAND_fetch(NULL, "SEED-SRC", NULL);
42 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
46 EVP_RAND *rand;
53 rand = EVP_RAND_fetch(NULL, "SEED-SRC", NULL);
54 seed = EVP_RAND_CTX_new(rand, NULL);
56 EVP_RAND_free(rand);
59 rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL);
60 rctx = EVP_RAND_CTX_new(rand, seed);
61 EVP_RAND_free(rand);
H A DEVP_RAND-HASH-DRBG.pod59 EVP_RAND *rand = EVP_RAND_fetch(NULL, "HASH-DRBG", NULL);
60 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
64 EVP_RAND *rand;
70 rand = EVP_RAND_fetch(NULL, "HASH-DRBG", NULL);
71 rctx = EVP_RAND_CTX_new(rand, NULL);
72 EVP_RAND_free(rand);
H A DEVP_RAND-HMAC-DRBG.pod61 EVP_RAND *rand = EVP_RAND_fetch(NULL, "HMAC-DRBG", NULL);
62 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
66 EVP_RAND *rand;
72 rand = EVP_RAND_fetch(NULL, "HMAC-DRBG", NULL);
73 rctx = EVP_RAND_CTX_new(rand, NULL);
74 EVP_RAND_free(rand);
H A DEVP_RAND-CTR-DRBG.pod65 EVP_RAND *rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL);
66 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
70 EVP_RAND *rand;
76 rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL);
77 rctx = EVP_RAND_CTX_new(rand, NULL);
78 EVP_RAND_free(rand);
H A DEVP_RAND-TEST-RAND.pod69 EVP_RAND *rand = EVP_RAND_fetch(NULL, "TEST-RAND", NULL);
70 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
74 EVP_RAND *rand;
82 rand = EVP_RAND_fetch(NULL, "TEST-RAND", NULL);
83 rctx = EVP_RAND_CTX_new(rand, NULL);
84 EVP_RAND_free(rand);
/freebsd/contrib/bc/tests/bc/scripts/
H A Drand.bc45 r = rand()
48 return rand()
58 rand() == r
66 a[i] = rand()
78 r = rand()
89 r == rand()
94 rand() == a[i]
/freebsd/crypto/libecc/src/examples/basic/
H A DMakefile14 …rho.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(LIBARITH) $(BIN…
17 …due.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(LIBARITH) $(BIN…
20 …les.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(ROOT_DIR)/src/e…
22 …cdh.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(BIN_LDFLAGS) $(…
27 …rho.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(BIN_LDFLAGS) -L…
30 …due.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(BIN_LDFLAGS) -L…
33 …les.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(ROOT_DIR)/src/e…
35 …cdh.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(BIN_LDFLAGS) -L…
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/
H A Dtst.index.d41 trace(index((char *)rand(), (char *)(rand() ^ vtimestamp)));
47 trace(rindex((char *)rand(), (char *)(rand() ^ vtimestamp,
54 trace(index((char *)arg0, (char *)arg1, rand()));
H A Dtst.substr.d41 trace(substr((char *)rand(), rand() ^ vtimestamp));
47 trace(substr((char *)rand(), -rand() ^ vtimestamp));
H A Dtst.strchr.d41 trace(strchr((char *)(rand() ^ timestamp), rand()));
47 trace(strrchr((char *)(rand() ^ timestamp), rand()));
H A Dtst.ddi_pathname.d41 trace(ddi_pathname((struct dev_info *)rand(), rand()));
47 trace(ddi_pathname((struct dev_info *)arg1, rand()));
H A Dtst.rw.d42 @[rw_read_held((struct rwlock *)rand())] = count();
49 @[rw_write_held((struct rwlock *)rand())] = count();
56 @[rw_iswriter((struct rwlock *)rand())] = count();
/freebsd/contrib/ntp/libntp/lib/isc/
H A Drandom.c87 *val = ((rand() >> 4) & 0xffff) | ((rand() << 12) & 0xffff0000); in isc_random_get()
90 *val = ((rand() >> 4) & 0x000007ff) | ((rand() << 7) & 0x003ff800) | in isc_random_get()
91 ((rand() << 18) & 0xffc00000); in isc_random_get()
/freebsd/sys/contrib/libsodium/test/default/
H A Donetimeauth7.c23 c[rand() % clen] += 1 + (rand() % 255); in main()
28 a[rand() % sizeof a] += 1 + (rand() % 255); in main()
H A Dauth5.c23 c[rand() % clen] += 1 + (rand() % 255); in main()
28 a[rand() % sizeof a] += 1 + (rand() % 255); in main()
H A Dauth7.c23 c[(size_t) rand() % clen] += 1 + (rand() % 255); in main()
28 a[rand() % sizeof a] += 1 + (rand() % 255); in main()
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_pax.c34 } rand; member
161 os_memcpy(data->rand.r.x, pos, EAP_PAX_RAND_LEN); in eap_pax_process_std_1()
163 data->rand.r.x, EAP_PAX_RAND_LEN); in eap_pax_process_std_1()
172 if (random_get_bytes(data->rand.r.y, EAP_PAX_RAND_LEN)) { in eap_pax_process_std_1()
178 data->rand.r.y, EAP_PAX_RAND_LEN); in eap_pax_process_std_1()
180 if (eap_pax_initial_key_derivation(req->mac_id, data->ak, data->rand.e, in eap_pax_process_std_1()
196 wpabuf_put_data(resp, data->rand.r.y, EAP_PAX_RAND_LEN); in eap_pax_process_std_1()
198 data->rand.r.y, EAP_PAX_RAND_LEN); in eap_pax_process_std_1()
208 data->rand.r.x, EAP_PAX_RAND_LEN, in eap_pax_process_std_1()
209 data->rand.r.y, EAP_PAX_RAND_LEN, in eap_pax_process_std_1()
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DEVP_RAND.pod29 int EVP_RAND_up_ref(EVP_RAND *rand);
30 void EVP_RAND_free(EVP_RAND *rand);
31 EVP_RAND_CTX *EVP_RAND_CTX_new(EVP_RAND *rand, EVP_RAND_CTX *parent);
34 int EVP_RAND_get_params(EVP_RAND *rand, OSSL_PARAM params[]);
37 const OSSL_PARAM *EVP_RAND_gettable_params(const EVP_RAND *rand);
38 const OSSL_PARAM *EVP_RAND_gettable_ctx_params(const EVP_RAND *rand);
39 const OSSL_PARAM *EVP_RAND_settable_ctx_params(const EVP_RAND *rand);
42 const char *EVP_RAND_get0_name(const EVP_RAND *rand);
43 const char *EVP_RAND_get0_description(const EVP_RAND *rand);
44 int EVP_RAND_is_a(const EVP_RAND *rand, const char *name);
[all …]
/freebsd/crypto/openssl/
H A DNOTES-NONSTOP.md11 Specify the `--with-rand-seed=rdcpu` option to the `./Configure` script.
15 specify the `--with-rand-seed=egd` option to the `./Configure` script.
124 ./Configure nonstop-nsx_64 --with-rand-seed=rdcpu
219 --with-rand-seed=rdcpu ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
222 --with-rand-seed=rdcpu ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
225 --with-rand-seed=rdcpu ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
228 --with-rand-seed=rdcpu ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
231 --with-rand-seed=rdcpu ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
234 --with-rand-seed=rdcpu ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
237 --with-rand-seed=rdcpu ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
[all …]
/freebsd/contrib/bc/tests/bc/
H A Drand.txt8 a[i] = rand()
24 rand()
29 rand()
257 rand()
262 rand()
274 a[i] == rand()
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_pax.c34 } rand; member
81 if (random_get_bytes(data->rand.r.x, EAP_PAX_RAND_LEN)) { in eap_pax_build_std_1()
105 wpabuf_put_data(req, data->rand.r.x, EAP_PAX_RAND_LEN); in eap_pax_build_std_1()
107 data->rand.r.x, EAP_PAX_RAND_LEN); in eap_pax_build_std_1()
153 data->rand.r.y, EAP_PAX_RAND_LEN, in eap_pax_build_std_3()
333 os_memcpy(data->rand.r.y, pos, EAP_PAX_RAND_LEN); in eap_pax_process_std_2()
335 data->rand.r.y, EAP_PAX_RAND_LEN); in eap_pax_process_std_2()
409 data->rand.e, data->mk, data->ck, in eap_pax_process_std_2()
419 data->rand.r.x, EAP_PAX_RAND_LEN, in eap_pax_process_std_2()
420 data->rand.r.y, EAP_PAX_RAND_LEN, in eap_pax_process_std_2()
[all …]

12345678910>>...12