diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2023-10-12 14:03:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 14:03:56 +0100 |
commit | c2788a7c6743c61bb1755c79eea6ae8df3adaba9 (patch) | |
tree | 63a38f202aa4a8484822e15fe18e660be841af66 /dhcpv4 | |
parent | 65c27093e38a3f00f85515be9ece0166ee6623fe (diff) | |
parent | 2cba0b1fd5c348ec6f10eaeabfbaa5c4051dd720 (diff) |
Merge pull request #515 from pmazzini/rtnl
update rtnetlink
Diffstat (limited to 'dhcpv4')
-rw-r--r-- | dhcpv4/server4/server_test.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/dhcpv4/server4/server_test.go b/dhcpv4/server4/server_test.go index 9fc44a3..a7e98de 100644 --- a/dhcpv4/server4/server_test.go +++ b/dhcpv4/server4/server_test.go @@ -5,10 +5,8 @@ package server4 import ( "context" "log" - "math/rand" "net" "testing" - "time" "github.com/insomniacslk/dhcp/dhcpv4" "github.com/insomniacslk/dhcp/dhcpv4/nclient4" @@ -16,12 +14,6 @@ import ( "github.com/stretchr/testify/require" ) -func init() { - // initialize seed. This is generally bad, but "good enough" - // to generate random ports for these tests - rand.Seed(time.Now().UTC().UnixNano()) -} - // DORAHandler is a server handler suitable for DORA transactions func DORAHandler(conn net.PacketConn, peer net.Addr, m *dhcpv4.DHCPv4) { if m == nil { |