diff --git a/Userland/Services/DHCPClient/DHCPv4Client.cpp b/Userland/Services/DHCPClient/DHCPv4Client.cpp index 895b1467c80..74ddb40ee49 100644 --- a/Userland/Services/DHCPClient/DHCPv4Client.cpp +++ b/Userland/Services/DHCPClient/DHCPv4Client.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -239,7 +240,7 @@ void DHCPv4Client::process_incoming(const DHCPv4Packet& packet) void DHCPv4Client::dhcp_discover(const InterfaceDescriptor& iface, IPv4Address previous) { - auto transaction_id = rand(); + auto transaction_id = get_random(); if constexpr (DHCPV4CLIENT_DEBUG) { dbgln("Trying to lease an IP for {} with ID {}", iface.m_ifname, transaction_id);