Permalink
Browse files

core: fix for 0.8 random number generator.

  • Loading branch information...
1 parent e3f4b55 commit 0eb09155659d931a944112171272ec2f3df09aea @mworrell mworrell committed Dec 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/support/z_ids.erl
View
@@ -134,7 +134,7 @@ handle_call(unique, _From, #state{is_fixed=false} = State) ->
Id = make_unique(),
{reply, Id, State};
-handle_call(number, _From, #state{is_fixed=true} = State) ->
+handle_call(number, _From, #state{is_fixed=false} = State) ->
Number = crypto:rand_uniform(1,1000000000),
{reply, Number, State};

0 comments on commit 0eb0915

Please sign in to comment.