Searched refs:rand (Results 1 – 12 of 12) sorted by relevance
116 id = rand() & INT_MAX; in main()134 if (! (pdu = make_pdu( rand() & 0xfff ) ) ) in main()
58 secret[i] = rand(); in ecc_setRandom()
35 *buf++ = rand() & 0xFF; in dtls_prng()
452 uint32_t rand[8]; in dtls_ecdsa_create_sig_hash() local457 dtls_prng((unsigned char *)rand, key_size); in dtls_ecdsa_create_sig_hash()458 ret = ecc_ecdsa_sign(priv, hash, rand, point_r, point_s); in dtls_ecdsa_create_sig_hash()
34 *buf++ = rand() & 0xFF; in coap_prng_impl()
15 float random_number = ((float)rand()) / ((float)RAND_MAX); in random_nodes()
343 rand() % opt.duplicate == 0 ) in send_packet()433 rand() % opt.drop == 0 ) ) in handle_message()446 rand() % opt.delay == 0 ) ) in handle_message()
206 rnd = rand(); in myrand()
256 * This function just returns data from rand().273 output[i] = rand();314 * After the buffer is empty it will return rand();
308 rnd = rand(); in myrand()
1596 output[i] = rand(); in myrand()
822 * On OpenBSD, use arc4random_buf() instead of rand() to prevent warnings1252 * On OpenBSD, use arc4random_buf() instead of rand() to prevent warnings1780 * Removed dependency on rand() in rsa_pkcs1_encrypt().