Home
last modified time | relevance | path

Searched refs:sys_rand8_get (Results 1 – 25 of 43) sorted by relevance

12

/Zephyr-latest/subsys/net/ip/
Dipv4_autoconf.c33 ipv4auto->requested_ip.s4_addr[2] = sys_rand8_get() % 254; in ipv4_autoconf_addr_set()
34 ipv4auto->requested_ip.s4_addr[3] = sys_rand8_get() % 254; in ipv4_autoconf_addr_set()
/Zephyr-latest/include/zephyr/random/
Drandom.h79 static inline uint8_t sys_rand8_get(void) in sys_rand8_get() function
/Zephyr-latest/tests/subsys/ipc/pbuf/src/
Dmain.c214 int rpt = (sys_rand8_get() & 3) + 1; in stress_read()
238 uint16_t len = STRESS_LEN_MIN + (sys_rand8_get() % STRESS_LEN_MOD); in stress_write()
239 int rpt = (sys_rand8_get() & 1) + 1; in stress_write()
/Zephyr-latest/tests/net/hostname/src/
Dmain.c85 data->mac_addr[5] = sys_rand8_get(); in net_iface_get_mac()
176 ctx->mac_address[5] = sys_rand8_get(); in eth_fake_iface_init()
/Zephyr-latest/tests/net/socket/af_packet_ipproto_raw/src/
Dmain.c59 ctx->mac_addr[5] = sys_rand8_get(); in fake_dev_get_mac()
/Zephyr-latest/tests/net/wifi/wifi_nm/src/
Dmain.c90 mac_addr[5] = sys_rand8_get(); in generate_mac()
/Zephyr-latest/tests/drivers/smbus/smbus_emul/src/
Dsmbus.c115 snd_byte = sys_rand8_get(); in ZTEST()
155 snd_byte = sys_rand8_get(); in ZTEST()
/Zephyr-latest/tests/net/lib/dns_dispatcher/src/
Dmain.c82 data->mac_addr[5] = sys_rand8_get(); in net_iface_get_mac()
/Zephyr-latest/tests/subsys/logging/log_stress/src/
Dmain.c119 switch (sys_rand8_get() % 4) { in context_handler()
/Zephyr-latest/tests/net/pm/src/
Dmain.c69 ctx->mac_addr[5] = sys_rand8_get(); in fake_dev_get_mac()
/Zephyr-latest/tests/net/route/src/
Dmain.c116 route->mac_addr[5] = sys_rand8_get(); in net_route_get_mac()
288 dest_addresses[i].s6_addr[15] = sys_rand8_get(); in test_init()
/Zephyr-latest/tests/net/shell/src/
Dmain.c81 context->mac_addr[5] = sys_rand8_get(); in net_udp_get_mac()
/Zephyr-latest/tests/lib/spsc_pbuf/src/
Dmain.c427 int rpt = (sys_rand8_get() & 3) + 1; in stress_read()
451 int rpt = (sys_rand8_get() & 1) + 1; in stress_write()
493 int rpt = sys_rand8_get() % 0x3; in stress_claim_free()
/Zephyr-latest/samples/arch/smp/pktqueue/src/
Dmain.c68 descriptors[queue_num][i].ptr[j] = sys_rand8_get(); in init_datagram_queue()
/Zephyr-latest/tests/lib/p4workq/src/
Dmain.c75 int num_tries = sys_rand8_get() % 4; in stress_handler()
/Zephyr-latest/tests/net/virtual/src/
Dmain.c178 mac_addr[5] = sys_rand8_get(); in generate_mac()
212 data->mac_addr[5] = sys_rand8_get(); in net_iface_get_mac()
537 lladdr.addr[0] = sys_rand8_get(); in add_to_arp()
542 lladdr.addr[5] = sys_rand8_get(); in add_to_arp()
/Zephyr-latest/drivers/net/
Dslip.c410 slip->mac_addr[5] = sys_rand8_get(); in slip_iface_init()
/Zephyr-latest/samples/bluetooth/peripheral_csc/src/
Dmain.c308 uint8_t rnd = sys_rand8_get(); in csc_simulation()
/Zephyr-latest/tests/net/tx_timestamp/src/
Dmain.c144 mac_addr[5] = sys_rand8_get(); in generate_mac()
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/
Dmain.c328 return (10 + sys_rand8_get() % 5); in timeout_for_publish()
/Zephyr-latest/tests/net/lib/dns_addremove/src/
Dmain.c94 data->mac_addr[5] = sys_rand8_get(); in net_iface_get_mac()
/Zephyr-latest/tests/net/vlan/src/
Dmain.c191 mac_addr[5] = sys_rand8_get(); in generate_mac()
268 data->mac_addr[5] = sys_rand8_get(); in net_iface_get_mac()
/Zephyr-latest/samples/net/mqtt_publisher/src/
Dmain.c223 sys_rand8_get()); in get_mqtt_payload()
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztress.c219 uint8_t repeat = sys_rand8_get(); in microdelay()
/Zephyr-latest/tests/net/igmp/src/
Dmain.c108 context->mac_addr[5] = sys_rand8_get(); in net_test_get_mac()

12