Skip to content

Commit ef6be42

Browse files
committed
rebaring: fix ?SEED_NAME
1 parent d15eaf7 commit ef6be42

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ all: fast dialyzer doc tests
4040
get-deps:
4141
$(REBAR) get-deps
4242

43-
compile: include/compile_flags.hrl
43+
compile:
4444
$(REBAR) compile
4545

4646
dialyzer: .plt/proper_plt compile

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ Quickstart guide
9898
Optionally, sfmt-erlang can be selected as an alternative random number
9999
generator using `./configure --use-sfmt` before running `make`, or with rebar3:
100100
```erlang
101-
{deps, [sfmt]}. %% Once sfmt-erlang supports rebar3 compilation.
102-
{overrides, [{override, proper, [{erl_opts, [{d, 'USE_SFMT'}]}]}]}.
101+
{deps, [proper,sfmt]}.
102+
{overrides, [{override, proper, [{erl_opts, [{d, 'RNG', sfmt}]}]}]}.
103103
```
104104
* Add PropEr's base directory to your Erlang library path, using one of the
105105
following methods:

include/proper_internal.hrl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
-define(RNG, random).
6363
-endif.
6464

65-
-define(SEED_NAME, rng_seed).
65+
-define(SEED_NAME, list_to_atom(atom_to_list(?RNG)++"_seed")).
6666
-ifndef(USE_EXSPLUS).
6767
-define(RNG_SET_SEED(Seed), ?RNG:seed(Seed)).
6868
-endif.

src/proper_gen_next.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ ensure_initialized() ->
8383
L = [get(proper_gen_next_cache),
8484
get(proper_gen_next_cache_backup),
8585
get(proper_gen_next_depth_cache),
86-
get(rng_seed),
86+
get(?SEED_NAME),
8787
get('$any_type'),
8888
get('$left'),
8989
get('$constraint_tries'),

0 commit comments

Comments
 (0)