Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a9e1b9eacb
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.459 kb
-module(statebox_identity_tests).
-include_lib("eunit/include/eunit.hrl").
entropy_unique_test() ->
?assertNot(
statebox_identity:entropy() =:= statebox_identity:entropy()).
entropy_idempotent_test() ->
NP = {Node, Now} = {'node', {1, 2, 3}},
?assertEqual(
erlang:phash2(NP),
statebox_identity:entropy(Node, Now)),
?assertEqual(
statebox_identity:entropy(Node, Now),
statebox_identity:entropy(Node, Now)).
Jump to Line
Something went wrong with that request. Please try again.