From 87740c07cbd8cc94c3118bedacc4271f27d5cf68 Mon Sep 17 00:00:00 2001
From: bilalcaliskan <bilalcaliskan@protonmail.com>
Date: Thu, 8 Apr 2021 01:21:54 +0300
Subject: [PATCH] raw/utils.go created

---
 pkg/raw/raw.go   | 11 -----------
 pkg/raw/utils.go | 13 +++++++++++++
 2 files changed, 13 insertions(+), 11 deletions(-)
 create mode 100644 pkg/raw/utils.go

diff --git a/pkg/raw/raw.go b/pkg/raw/raw.go
index 044eaa7..3e6ccf5 100644
--- a/pkg/raw/raw.go
+++ b/pkg/raw/raw.go
@@ -5,7 +5,6 @@ import (
 	"github.com/google/gopacket/layers"
 	"github.com/schollz/progressbar/v3"
 	"golang.org/x/net/ipv4"
-	"math/rand"
 	"net"
 	"time"
 )
@@ -96,14 +95,4 @@ func StartFlooding(dstIpStr string, dstPort, payloadLength int) {
 		}
 		time.Sleep(800 * time.Millisecond)
 	}
-}
-
-func getRandomPort() int {
-	return 0
-}
-
-func getRandomPayload(length int) []byte {
-	payload := make([]byte, length)
-	rand.Read(payload)
-	return payload
 }
\ No newline at end of file
diff --git a/pkg/raw/utils.go b/pkg/raw/utils.go
new file mode 100644
index 0000000..758229e
--- /dev/null
+++ b/pkg/raw/utils.go
@@ -0,0 +1,13 @@
+package raw
+
+import "math/rand"
+
+func getRandomPort() int {
+	return 0
+}
+
+func getRandomPayload(length int) []byte {
+	payload := make([]byte, length)
+	rand.Read(payload)
+	return payload
+}
\ No newline at end of file