We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4081a5f commit f9a1f9eCopy full SHA for f9a1f9e
test/prop_causal_context.erl
@@ -126,9 +126,23 @@ prop_union() ->
126
).
127
128
%% @private
129
-ds(L) ->
130
- dot_set:from_dots(L).
+cc(L) ->
+ lists:foldl(
131
+ fun(Dot, CC) ->
132
+ causal_context:add_dot(Dot, CC)
133
+ end,
134
+ causal_context:new(),
135
+ shuffle(L)
136
+ ).
137
138
-cc(L) ->
- causal_context:from_dot_set(ds(L)).
139
+shuffle(L) ->
140
+ rand:seed(exsplus, erlang:timestamp()),
141
+ lists:map(
142
+ fun({_, E}) -> E end,
143
+ lists:sort(
144
145
+ fun(E) -> {rand:uniform(), E} end, L
146
+ )
147
148
0 commit comments