summaryrefslogtreecommitdiffstats
path: root/lib/oracle.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oracle.go')
-rw-r--r--lib/oracle.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/oracle.go b/lib/oracle.go
index 11f735a..005e392 100644
--- a/lib/oracle.go
+++ b/lib/oracle.go
@@ -14,6 +14,7 @@ dXN0IHRvIHNheSBoaQpEaWQgeW91IHN0b3A/IE5vLCBJIGp1c3QgZHJvdmUg
YnkK`
var OracleKey []byte = make([]byte, 16)
+var OracleIV []byte = make([]byte, 16)
var oracleRandom []byte = make([]byte, RandomInt(1, 4096))
func init() {
@@ -22,6 +23,11 @@ func init() {
panic(err)
}
+ _, err = rand.Read(OracleIV)
+ if err != nil {
+ panic(err)
+ }
+
_, err = rand.Read(oracleRandom)
if err != nil {
panic(err)