Skip to content

Commit fdc3f87

Browse files
committed
derive seed with ?SEED_RANGE
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
1 parent 6e2cf8f commit fdc3f87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/proper_arith.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ rand_restart(Seed) ->
244244
-spec rand_make_seed() -> proper_gen:seed().
245245
rand_make_seed() ->
246246
{_,_} = get(?SEED_NAME),
247-
A = ?RANDOM_MOD:uniform(1000000),
248-
B = ?RANDOM_MOD:uniform(1000000),
249-
C = ?RANDOM_MOD:uniform(1000000),
247+
A = rand_int(0, ?SEED_RANGE -1),
248+
B = rand_int(0, ?SEED_RANGE -1),
249+
C = rand_int(0, ?SEED_RANGE -1),
250250
{A,B,C}.
251251

252252
-spec rand_reseed() -> 'ok'.

0 commit comments

Comments
 (0)