Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
2875-Use-default-rand-algorithm.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2875-Use-default-rand-algorithm.patch of Package erlang
From 9232e2df8ee27d5b03533eedbeaecf7e1c4c4157 Mon Sep 17 00:00:00 2001 From: Raimo Niskanen <raimo@erlang.org> Date: Tue, 8 Dec 2020 21:32:35 +0100 Subject: [PATCH 5/6] Use default rand algorithm --- lib/stdlib/test/ets_SUITE.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/stdlib/test/ets_SUITE.erl b/lib/stdlib/test/ets_SUITE.erl index aded937057..a7dd2341cc 100644 --- a/lib/stdlib/test/ets_SUITE.erl +++ b/lib/stdlib/test/ets_SUITE.erl @@ -114,7 +114,7 @@ -define(heap_binary_size, 64). init_per_testcase(Case, Config) -> - rand:seed(exsplus), + rand:seed(default), io:format("*** SEED: ~p ***\n", [rand:export_seed()]), start_spawn_logger(), wait_for_test_procs(), %% Ensure previous case cleaned up @@ -2013,7 +2013,7 @@ random_test() -> {ok,[X]} -> rand:seed(X); _ -> - rand:seed(exsplus) + rand:seed(default) end, Seed = rand:export_seed(), {ok,F} = file:open(filename:join([WriteDir,"last_random_seed.txt"]), @@ -8119,7 +8119,7 @@ run_workers_do(InitF,ExecF,FiniF,Laps, NumOfProcs) -> worker({ProcN,Seed}, InitF, ExecF, FiniF, Laps, Parent, NumOfProcs) -> io:format("smp worker ~p, seed=~p~n",[self(),Seed]), - rand:seed(exsplus, {Seed,Seed,Seed}), + rand:seed(default, {Seed,Seed,Seed}), State1 = InitF([ProcN, NumOfProcs]), State2 = worker_loop(Laps, ExecF, State1), Result = FiniF(State2), -- 2.26.2
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