diff options
Diffstat (limited to 'util/rand.go')
-rw-r--r-- | util/rand.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/rand.go b/util/rand.go index 8502521..212d6d3 100644 --- a/util/rand.go +++ b/util/rand.go @@ -20,3 +20,7 @@ func NewRandId(n int) string { func NewSessionId() string { return NewRandId(24) } + +func NewCSRFToken() string { + return NewRandId(24) +} |