rand() is used, but srand() was never called.

This commit is contained in:
Fredrik Holmqvist 2012-05-17 23:54:57 +02:00
parent 61d7e75709
commit 7ca2da76f0

View File

@ -429,6 +429,8 @@ DHCPClient::DHCPClient(BMessenger target, const char* device)
fStartTime = system_time();
fTransactionID = (uint32)fStartTime;
srand(fTransactionID);
BNetworkAddress link;
BNetworkInterface interface(device);
fStatus = interface.GetHardwareAddress(link);