Safe Haskell | None |
---|
Snap.Snaplet.Session.Common
Description
This module contains functionality common among multiple back-ends.
Documentation
data RNG
High speed, mutable random number generator state
randomToken :: Int -> RNG -> IO ByteString
Generates a random salt of given length
mkCSRFToken :: RNG -> IO Text
Generate a randomized CSRF token