summaryrefslogtreecommitdiff
path: root/src/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.go')
-rw-r--r--src/util.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/util.go b/src/util.go
deleted file mode 100644
index 87340f9..0000000
--- a/src/util.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package eduvpn
-
-import (
- "crypto/rand"
- "time"
-)
-
-// Creates a random byteslice of `size`
-func MakeRandomByteSlice(size int) ([]byte, error) {
- byteSlice := make([]byte, size)
- _, err := rand.Read(byteSlice)
- if err != nil {
- return nil, err
- }
- return byteSlice, nil
-}
-
-func GenerateTimeSeconds() int64 {
- current := time.Now()
- return current.Unix()
-}