summaryrefslogtreecommitdiff
path: root/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'auth.go')
-rw-r--r--auth.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth.go b/auth.go
index 6f8a970..91ede99 100644
--- a/auth.go
+++ b/auth.go
@@ -62,7 +62,7 @@ func generateAuthorizationURL() (string, error) {
* hacky atomics or having a multiple goroutines to handle
* authentication, neither of which are desirable.
*/
- nonce, err := random(tokenLength)
+ nonce, err := randomBytes(tokenLength)
if err != nil {
return "", err
}
@@ -189,7 +189,7 @@ func handleAuth(w http.ResponseWriter, req *http.Request) {
return
}
- cookieValue, err := random(tokenLength)
+ cookieValue, err := randomBytes(tokenLength)
if err != nil {
wstr(w, http.StatusInternalServerError, err.Error())
return