Module z_ids

Server supplying random strings and unique ids.

Copyright 2009-2012 Marc Worrell

Behaviours: gen_server.

Authors: Marc Worrell (marc@worrell.nl).

Description

Server supplying random strings and unique ids

Function Index

code_change/3
fix_seed/0Fix the seed of the random number generator, used for tests.
handle_call/3
handle_cast/2
handle_info/2
id/0Return a long random id, can be used for session ids.
id/1
identifier/0Get a random indentifier of a certain length, case insensitive.
identifier/1
init/1
number/0Return a big random integer, but smaller than maxint32.
number/1
optid/1
sign_key/1Get the key for signing requests stored in the user agent.
sign_key_simple/1Get the key for less secure signing of data (without nonce).
start_link/0
start_tests/0
terminate/2
unique/0Return an unique id to be used in javascript or html.

Function Details

code_change/3

code_change(OldVersion, State, Extra) -> any()

fix_seed/0

fix_seed() -> any()

Fix the seed of the random number generator, used for tests

handle_call/3

handle_call(Msg, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Msg, State) -> any()

id/0

id() -> any()

Return a long random id, can be used for session ids.

id/1

id(Len) -> any()

identifier/0

identifier() -> binary()

Get a random indentifier of a certain length, case insensitive

identifier/1

identifier(Len) -> any()

init/1

init(Props) -> any()

number/0

number() -> any()

Return a big random integer, but smaller than maxint32

number/1

number(Max) -> any()

optid/1

optid(Id) -> any()

sign_key/1

sign_key(Context) -> binary()

Get the key for signing requests stored in the user agent.

sign_key_simple/1

sign_key_simple(Context) -> binary()

Get the key for less secure signing of data (without nonce).

start_link/0

start_link() -> any()

start_tests/0

start_tests() -> any()

terminate/2

terminate(Reason, State) -> any()

unique/0

unique() -> any()

Return an unique id to be used in javascript or html. No randomness, just unique in the cluster.


Generated by EDoc, Nov 22 2014, 05:16:47.