summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/server4
diff options
context:
space:
mode:
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 {