We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e2cf8f commit fdc3f87Copy full SHA for fdc3f87
src/proper_arith.erl
@@ -244,9 +244,9 @@ rand_restart(Seed) ->
244
-spec rand_make_seed() -> proper_gen:seed().
245
rand_make_seed() ->
246
{_,_} = get(?SEED_NAME),
247
- A = ?RANDOM_MOD:uniform(1000000),
248
- B = ?RANDOM_MOD:uniform(1000000),
249
- C = ?RANDOM_MOD:uniform(1000000),
+ A = rand_int(0, ?SEED_RANGE -1),
+ B = rand_int(0, ?SEED_RANGE -1),
+ C = rand_int(0, ?SEED_RANGE -1),
250
{A,B,C}.
251
252
-spec rand_reseed() -> 'ok'.
0 commit comments