Current section
Files
Jump to
Current section
Files
lib/generator/strong_rand_bytes.ex
defmodule PlugSessionRedisStore.Generator.StrongRandBytes do
@moduledoc """
Default session id generator
"""
@behaviour PlugSessionRedisStore.Generator
def generate do
Base.encode64(:crypto.strong_rand_bytes(96))
end
end