summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/oracle.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/oracle.go b/lib/oracle.go
index 1c548ff..f117c98 100644
--- a/lib/oracle.go
+++ b/lib/oracle.go
@@ -14,12 +14,18 @@ dXN0IHRvIHNheSBoaQpEaWQgeW91IHN0b3A/IE5vLCBJIGp1c3QgZHJvdmUg
YnkK`
var oracleKey []byte = make([]byte, 16)
+var oracleRandom []byte = make([]byte, randomInt(1, 16))
func init() {
_, err := rand.Read(oracleKey)
if err != nil {
panic(err)
}
+
+ _, err = rand.Read(oracleRandom)
+ if err != nil {
+ panic(err)
+ }
}
// Given an input `in`, this function AES encrypts `in` using a