iPXE
|
Random number generation. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
void | srandom (unsigned int seed) |
Seed the pseudo-random number generator. More... | |
long int | random (void) |
Generate a pseudo-random number between 0 and 2147483647L or 2147483562? More... | |
Variables | |
static int32_t | rnd_seed = 0 |
Random number generation.
Definition in file random.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
void srandom | ( | unsigned int | seed | ) |
long int random | ( | void | ) |
Generate a pseudo-random number between 0 and 2147483647L or 2147483562?
rand | Pseudo-random number |
Definition at line 31 of file random.c.
References NULL, rnd_seed, and srandom().
Referenced by arbel_alloc_qpn(), cipher_cost(), digest_cost(), dns_send_packet(), eap_rx_mschapv2_request(), efi_pxe_udp_write(), efi_snp_hii_random_guid(), eth_random_addr(), forcedeth_open(), hermon_alloc_qpn(), http_digest_authenticate(), ib_create_conn(), ib_create_qp(), inject_corruption_nonzero(), inject_fault_nonzero(), iscsi_handle_chap_c_value(), iscsi_open_connection(), loopback_test(), memcpy_test_speed(), ntlm_response(), peerdisc_create(), profile_test_exec(), rand(), start_dhcp(), start_dhcpv6(), tcp_open(), tcpip_bind(), tcpip_random_okx(), tls_client_hello(), tls_new_server_hello(), tls_send_client_key_exchange_pubkey(), vmbus_open(), and wep_encrypt().