drivers: modem: use sys_rand_get directly

use sys_rand_get() directly.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2024-04-03 11:42:12 +02:00 committed by Carles Cufí
parent 792cbb9a24
commit 19df6cd9b1

View file

@ -1760,8 +1760,7 @@ static inline uint8_t *wncm14a2a_get_mac(const struct device *dev)
ctx->mac_addr[0] = 0x00; ctx->mac_addr[0] = 0x00;
ctx->mac_addr[1] = 0x10; ctx->mac_addr[1] = 0x10;
UNALIGNED_PUT(sys_cpu_to_be32(sys_rand32_get()), sys_rand_get(&ctx->mac_addr[2], 4U);
(uint32_t *)(ctx->mac_addr + 2));
return ctx->mac_addr; return ctx->mac_addr;
} }