summaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.go b/utils.go
index 81d2e17..3b04493 100644
--- a/utils.go
+++ b/utils.go
@@ -51,7 +51,7 @@ func wstr(w http.ResponseWriter, code int, msg string) {
* encoded string. It's divided by three because we're using base64 and it's
* ideal to ensure that the entropy remains consistent throughout the string.
*/
-func random(sz int) (string, error) {
+func randomBytes(sz int) (string, error) {
r := make([]byte, 3*sz)
_, err := rand.Read(r)
if err != nil {