From e63fee56dc2a69642d199ed37cbe715764790ad6 Mon Sep 17 00:00:00 2001 From: derek mcquay Date: Tue, 23 Aug 2016 11:11:25 -0700 Subject: [PATCH] make string actually random --- server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.go b/server.go index 97f21ed..2d1aca6 100644 --- a/server.go +++ b/server.go @@ -6,7 +6,9 @@ import ( "io" "io/ioutil" "log" + "math/rand" "net/http" + "strconv" "time" "github.com/gorilla/sessions" @@ -25,7 +27,7 @@ var ( Scopes: []string{"https://www.googleapis.com/auth/userinfo.email"}, Endpoint: google.Endpoint, } - oauthStateString = "thisshouldberandom" + oauthStateString = strconv.Itoa(rand.Int()) ) var Version string = "dev"