From 6c4749a903744a16deb2fa6c426c4193afe76b4c Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Wed, 24 Feb 2021 19:58:23 -0500 Subject: lib: remove OracleAESRandomEncrypt Move function into C11 where it is used. --- lib/rand.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rand.go') diff --git a/lib/rand.go b/lib/rand.go index 1ba1679..be95366 100644 --- a/lib/rand.go +++ b/lib/rand.go @@ -37,7 +37,7 @@ func RandomBytes(size int) ([]byte, error) { } // Randomly generates `min` to `max` bytes. -func randomBytesWithLengthBetween(min, max int64) []byte { +func RandomBytesWithLengthBetween(min, max int64) []byte { bs := make([]byte, RandomInt(min, max)) _, err := rand.Read(bs) if err != nil { -- cgit v1.2.3