aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/firewall/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'tunnel/firewall/helpers.go')
-rw-r--r--tunnel/firewall/helpers.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/tunnel/firewall/helpers.go b/tunnel/firewall/helpers.go
index 237a5f57..abb2684c 100644
--- a/tunnel/firewall/helpers.go
+++ b/tunnel/firewall/helpers.go
@@ -6,9 +6,7 @@
package firewall
import (
- "crypto/rand"
"fmt"
- "io"
"os"
"runtime"
"syscall"
@@ -136,15 +134,3 @@ func getCurrentProcessAppID() (*wtFwpByteBlob, error) {
}
return appID, nil
}
-
-func randGUID() (windows.GUID, error) {
- guid := windows.GUID{}
- n, err := rand.Read((*[16]byte)(unsafe.Pointer(&guid))[:])
- if err != nil {
- return guid, err
- }
- if n != 16 {
- return guid, io.ErrShortBuffer
- }
- return guid, nil
-}