summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/server4
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2023-10-12 08:21:10 +0100
committerPablo Mazzini <pmazzini@gmail.com>2023-10-12 09:33:18 +0100
commit2cba0b1fd5c348ec6f10eaeabfbaa5c4051dd720 (patch)
tree63a38f202aa4a8484822e15fe18e660be841af66 /dhcpv4/server4
parent65c27093e38a3f00f85515be9ece0166ee6623fe (diff)
update rtnetlink
Diffstat (limited to 'dhcpv4/server4')
-rw-r--r--dhcpv4/server4/server_test.go8
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 {