Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
riak_dt
riak_dt-2.1.4-crypto.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File riak_dt-2.1.4-crypto.patch of Package riak_dt
diff -Ndurp riak_dt-2.1.4/src/riak_dt_gcounter.erl riak_dt-2.1.4-crypto/src/riak_dt_gcounter.erl --- riak_dt-2.1.4/src/riak_dt_gcounter.erl 2017-03-17 21:54:41.000000000 +0200 +++ riak_dt-2.1.4-crypto/src/riak_dt_gcounter.erl 2017-08-18 23:41:06.105443101 +0300 @@ -278,7 +278,7 @@ roundtrip_bin_test() -> lots_of_actors_test() -> GC = lists:foldl(fun(_, GCnt) -> ActorLen = crypto:rand_uniform(1, 1000), - Actor = crypto:rand_bytes(ActorLen), + Actor = crypto:strong_rand_bytes(ActorLen), Cnt = crypto:rand_uniform(1, 10000), {ok, Cnt2} =riak_dt_gcounter:update({increment, Cnt}, Actor, GCnt), Cnt2 diff -Ndurp riak_dt-2.1.4/src/riak_dt_map.erl riak_dt-2.1.4-crypto/src/riak_dt_map.erl --- riak_dt-2.1.4/src/riak_dt_map.erl 2017-03-17 21:54:41.000000000 +0200 +++ riak_dt-2.1.4-crypto/src/riak_dt_map.erl 2017-08-18 23:41:47.464627037 +0300 @@ -957,10 +957,11 @@ equals_test() -> unsupported_version_test() -> ?assertMatch(?UNSUPPORTED_VERSION(12), to_binary(12, new())), - ?assertMatch(?UNSUPPORTED_VERSION(8) , from_binary(<<?TAG:8/integer, 8:8/integer, (crypto:rand_bytes(22))/binary>>)). + ?assertMatch(?UNSUPPORTED_VERSION(8), + from_binary(<<?TAG:8/integer, 8:8/integer, (crypto:strong_rand_bytes(22))/binary>>)). invalid_binary_test() -> - ?assertMatch(?INVALID_BINARY, from_binary(<<(crypto:rand_bytes(187))/binary>>)). + ?assertMatch(?INVALID_BINARY, from_binary(<<(crypto:strong_rand_bytes(187))/binary>>)). -ifdef(EQC). -define(NUMTESTS, 1000).
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor