Home
last modified time | relevance | path

Searched refs:rng_type (Results 1 – 25 of 172) sorted by relevance

1234567

/dports/audio/libopenmpt/libopenmpt-0.6.0+release.autotools/src/mpt/random/
H A Dengine.hpp44 typedef std::mt19937 rng_type; typedef
47 return rng_type::word_size; in result_bits()
53 return rng_type(seed); in make()
66 return rng_type::word_size; in result_bits()
72 return rng_type(seed); in make()
85 return rng_type::word_size; in result_bits()
91 return rng_type(seed); in make()
104 return rng_type::word_size; in result_bits()
110 return rng_type(seed); in make()
129 return rng_type(seed); in make()
[all …]
/dports/editors/encryptpad/EncryptPad-0.5.0.1/deps/botan/src/cli/
H A Dcli_rng.cpp32 cli_make_rng(const std::string& rng_type, const std::string& hex_drbg_seed) in cli_make_rng() argument
35 if(rng_type == "system" || rng_type.empty()) in cli_make_rng()
44 if(rng_type == "auto" || rng_type == "entropy" || rng_type.empty()) in cli_make_rng()
48 if(rng_type == "entropy") in cli_make_rng()
60 if(rng_type == "drbg" || (rng_type.empty() && drbg_seed.empty() == false)) in cli_make_rng()
77 if(rng_type == "rdrand" || rng_type == "cpu" || rng_type.empty()) in cli_make_rng()
81 else if(rng_type.empty() == false) in cli_make_rng()
86 if(rng_type.empty()) in cli_make_rng()
89 throw CLI_Error_Unsupported("RNG", rng_type); in cli_make_rng()
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/botan/src/cli/
H A Dcli_rng.cpp32 cli_make_rng(const std::string& rng_type, const std::string& hex_drbg_seed) in cli_make_rng() argument
35 if(rng_type == "system" || rng_type.empty()) in cli_make_rng()
44 if(rng_type == "auto" || rng_type == "entropy" || rng_type.empty()) in cli_make_rng()
48 if(rng_type == "entropy") in cli_make_rng()
60 if(rng_type == "drbg" || (rng_type.empty() && drbg_seed.empty() == false)) in cli_make_rng()
77 if(rng_type == "rdrand" || rng_type == "cpu" || rng_type.empty()) in cli_make_rng()
81 else if(rng_type.empty() == false) in cli_make_rng()
86 if(rng_type.empty()) in cli_make_rng()
89 throw CLI_Error_Unsupported("RNG", rng_type); in cli_make_rng()
/dports/security/botan2/Botan-2.18.2/src/cli/
H A Dcli_rng.cpp32 cli_make_rng(const std::string& rng_type, const std::string& hex_drbg_seed) in cli_make_rng() argument
35 if(rng_type == "system" || rng_type.empty()) in cli_make_rng()
44 if(rng_type == "auto" || rng_type == "entropy" || rng_type.empty()) in cli_make_rng()
48 if(rng_type == "entropy") in cli_make_rng()
60 if(rng_type == "drbg" || (rng_type.empty() && drbg_seed.empty() == false)) in cli_make_rng()
77 if(rng_type == "rdrand" || rng_type == "cpu" || rng_type.empty()) in cli_make_rng()
81 else if(rng_type.empty() == false) in cli_make_rng()
86 if(rng_type.empty()) in cli_make_rng()
89 throw CLI_Error_Unsupported("RNG", rng_type); in cli_make_rng()
/dports/math/sprng/sprng5/SRC/
H A Dfwrap.cpp55 int * funpack_rng_F77(char *buffer, int *rng_type);
56 int * funpack_rng_simple_F77(char *buffer, int *rng_type);
61 int * finit_rng_simmpi_F77(int *seed, int *mult, int * rng_type);
117 int * finit_rng_F77(int * rng_type, int *gennum, int *total_gen, int *seed, int *length) in finit_rng_F77() argument
119 Sprng * ptr = SelectType(* rng_type); in finit_rng_F77()
214 int * funpack_rng_F77(char *buffer, int * rng_type) in funpack_rng_F77() argument
216 Sprng * ptr = SelectType(* rng_type); in funpack_rng_F77()
225 int * funpack_rng_simple_F77(char *buffer, int * rng_type) in funpack_rng_simple_F77() argument
227 return unpack_rng_simple(buffer, *rng_type); in funpack_rng_simple_F77()
256 int * finit_rng_simmpi_F77(int *seed, int *mult, int *rng_type) in finit_rng_simmpi_F77() argument
[all …]
H A D.vtemplate.cpp320 p += store_int(rng_type,4,p);
351 p += load_int(p,4,(unsigned int *)&rng_type);
353 if (rng_type != rng_type/*Replace with proper value of rng_type*/) {
354 fprintf(stderr,"ERROR: Unpacked ' %d ' instead of ' %d '\n", rng_type, rng_type);
358 p += load_int(p,4,(unsigned int *)&rng_type);
H A D.template.cpp349 p += store_int(rng_type,4,p);
384 p += load_int(p,4,(unsigned int *)&rng_type);
386 if (rng_type != rng_type/*Replace with proper value of rng_type*/) {
387 fprintf(stderr,"ERROR: Unpacked ' %d ' instead of ' %d '\n", rng_type, rng_type);
391 p += load_int(p,4,(unsigned int *)&rng_type);
/dports/security/rnp/rnp-0.15.2/src/lib/crypto/
H A Drng.cpp45 !botan_rng_init(&ctx->botan_rng, ctx->rng_type == RNG_DRBG ? "user" : NULL); in rng_ensure_initialized()
50 rng_init(rng_t *ctx, rng_type_t rng_type) in rng_init() argument
56 if ((rng_type != RNG_DRBG) && (rng_type != RNG_SYSTEM)) { in rng_init()
61 ctx->rng_type = rng_type; in rng_init()
62 return (rng_type == RNG_SYSTEM) ? rng_ensure_initialized(ctx) : true; in rng_init()
/dports/science/pynn/PyNN-0.10.0/test/unittests/
H A Dtest_random.py81 for rng_type in self.rng_types:
83 rng0 = rng_type(seed=1000, parallel_safe=False)
85 rng1 = rng_type(seed=1000, parallel_safe=False)
95 for rng_type in self.rng_types:
97 rng0 = rng_type(seed=1000, parallel_safe=False)
99 rng1 = rng_type(seed=1000, parallel_safe=False)
115 for rng_type in self.rng_types:
117 rng0 = rng_type(seed=1000, parallel_safe=True)
119 rng1 = rng_type(seed=1000, parallel_safe=True)
135 for rng_type in self.rng_types:
[all …]
/dports/science/nest/nest-simulator-3.1/testsuite/pytests/
H A Dtest_random123.py59 nest.rng_type = self.rng_type
67 doc = '{} ({})'.format(self._testMethodDoc, self.rng_type)
129 rng_type = 'Philox_32' variable in Philox32TestCase
134 rng_type = 'Philox_64' variable in Philox64TestCase
139 rng_type = 'Threefry_32' variable in Threefry32TestCase
144 rng_type = 'Threefry_64' variable in Threefry64TestCase
/dports/science/nest/nest-simulator-3.1/nestkernel/
H A Drandom_manager.cpp138 def< std::string >( d, names::rng_type, current_rng_type_ ); in get_status()
157 std::string rng_type; in set_status() local
158 bool rng_type_updated = updateValue< std::string >( d, names::rng_type, rng_type ); in set_status()
162 auto rng = rng_types_.find( rng_type ); in set_status()
166 throw BadProperty( String::compose( msg, rng_type ) ); in set_status()
169 current_rng_type_ = rng_type; in set_status()
/dports/science/py-scikit-learn/scikit-learn-1.0.2/sklearn/ensemble/_hist_gradient_boosting/tests/
H A Dtest_warm_start.py189 def test_random_seeds_warm_start(GradientBoosting, X, y, rng_type): argument
192 def _get_rng(rng_type): argument
194 if rng_type == "none":
196 elif rng_type == "int":
201 random_state = _get_rng(rng_type)
210 random_state = _get_rng(rng_type)
225 if rng_type == "none":
227 elif rng_type == "int":
/dports/security/libgcrypt/libgcrypt-1.9.4/tests/
H A Drandom.c320 rng_type (void) in rng_type() function
338 rngtype = rng_type (); in check_rng_type_switching()
345 if (rngtype != rng_type ()) in check_rng_type_switching()
350 rngtype = rng_type (); in check_rng_type_switching()
358 if (rngtype != rng_type ()) in check_rng_type_switching()
363 rngtype = rng_type (); in check_rng_type_switching()
376 rngtype = rng_type (); in check_rng_type_switching()
397 rngtype = rng_type (); in check_early_rng_type_switching()
404 rngtype = rng_type (); in check_early_rng_type_switching()
412 rngtype = rng_type (); in check_early_rng_type_switching()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/libgcrypt/tests/
H A Drandom.c320 rng_type (void) in rng_type() function
338 rngtype = rng_type (); in check_rng_type_switching()
345 if (rngtype != rng_type ()) in check_rng_type_switching()
350 rngtype = rng_type (); in check_rng_type_switching()
358 if (rngtype != rng_type ()) in check_rng_type_switching()
363 rngtype = rng_type (); in check_rng_type_switching()
376 rngtype = rng_type (); in check_rng_type_switching()
397 rngtype = rng_type (); in check_early_rng_type_switching()
404 rngtype = rng_type (); in check_early_rng_type_switching()
412 rngtype = rng_type (); in check_early_rng_type_switching()
[all …]
/dports/math/sprng/sprng5/SRC/pmlcg/
H A Dpmlcg.cpp258 rng_type = 5; in PMLCG()
320 rng_type = p[0]->rng_type; in init_rng()
344 rng_type = SPRNG_PMLCG; in init_rng()
370 rng_type = c.rng_type; in PMLCG()
397 rng_type = c.rng_type; in operator =()
689 genptr[i]->rng_type = rng_type; in spawn_rng()
754 p += store_int(rng_type,4,p); in pack_rng()
841 p += load_int(p,4,(unsigned int *)&rng_type); in unpack_rng()
843 if (rng_type != SPRNG_PMLCG) { in unpack_rng()
844 fprintf(stderr,"ERROR: Unpacked ' %d ' instead of ' %d '\n", rng_type, SPRNG_LCG64); in unpack_rng()
/dports/science/rdkit/rdkit-Release_2021_03_5/Code/RDGeneral/
H A Dutils.h36 typedef boost::minstd_rand rng_type; typedef
39 typedef boost::variate_generator<rng_type &, uniform_int> int_source_type;
40 typedef boost::variate_generator<rng_type &, uniform_double> double_source_type;
44 RDKIT_RDGENERAL_EXPORT rng_type &getRandomGenerator(int seed = -1);
/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/
H A Drandom.h21 generator(rng_type g);
25 rng_type previous;
38 rng_type previous_main;
41 rng_type get_branch_generator(const branch_type b);
45 PcgRNG *get_generator(rng_type r);
53 uint32_t get_uint32(rng_type generator);
54 uint64_t get_uint64(rng_type generator);
/dports/devel/websocketpp/websocketpp-0.8.2/test/processors/
H A Dhybi08.cpp51 typedef websocketpp::random::none::int_generator<uint32_t> rng_type; typedef
73 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
106 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
125 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
143 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
161 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
179 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
H A Dhybi07.cpp51 typedef websocketpp::random::none::int_generator<uint32_t> rng_type; typedef
73 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
107 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
125 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
143 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
161 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
179 stub_config::rng_type rng; in BOOST_AUTO_TEST_CASE()
/dports/math/sprng/sprng5/SRC/lfg/
H A Dlfg.cpp455 q[i]->rng_type = rng_type_local; in initialize()
554 rng_type = 0; in LFG()
663 rng_type = SPRNG_LFG; in init_rng()
688 rng_type = c.rng_type; in LFG()
707 rng_type = c.rng_type; in operator =()
744 q = initialize(rng_type,nspawned,param,seed,p,init_seed); in spawn_rng()
887 p += store_int(rng_type,4,p); in pack_rng()
912 int rng_type; in unpack_rng() local
916 p += load_int(p,4,(unsigned int *)&rng_type); in unpack_rng()
929 if (rng_type != SPRNG_LFG) { in unpack_rng()
[all …]
/dports/devel/RStudio/rstudio-2021.09.1-372/src/cpp/ext/websocketpp/processors/
H A Dhybi07.hpp49 typedef typename config::rng_type rng_type; typedef in websocketpp::processor::hybi07
51 explicit hybi07(bool secure, bool p_is_server, msg_manager_ptr manager, rng_type& rng) in hybi07()
/dports/games/pokerth/pokerth-1.1.2-rc/src/third_party/websocketpp/websocketpp/processors/
H A Dhybi07.hpp49 typedef typename config::rng_type rng_type; typedef in websocketpp::processor::hybi07
51 explicit hybi07(bool secure, bool p_is_server, msg_manager_ptr manager, rng_type& rng) in hybi07()
/dports/devel/websocketpp/websocketpp-0.8.2/websocketpp/processors/
H A Dhybi07.hpp49 typedef typename config::rng_type rng_type; typedef in websocketpp::processor::hybi07
51 explicit hybi07(bool secure, bool p_is_server, msg_manager_ptr manager, rng_type& rng) in hybi07()
/dports/multimedia/musikcube/musikcube-0.96.7/src/3rdparty/include/websocketpp/processors/
H A Dhybi07.hpp49 typedef typename config::rng_type rng_type; typedef in websocketpp::processor::hybi07
51 explicit hybi07(bool secure, bool p_is_server, msg_manager_ptr manager, rng_type& rng) in hybi07()
/dports/math/sprng/sprng5/SRC/lcg64/
H A Dlcg64.cpp147 rng_type = SPRNG_LCG64; in init_rng()
206 rng_type = 2; in LCG64()
239 rng_type = c.rng_type; in LCG64()
269 rng_type = c.rng_type; in operator =()
485 p += store_int(rng_type,4,p); in pack_rng()
529 p += load_int(p,4,(unsigned int *)&rng_type); in unpack_rng()
531 if (rng_type != SPRNG_LCG64) { in unpack_rng()
532 fprintf(stderr,"ERROR: Unpacked ' %d ' instead of ' %d '\n", rng_type, SPRNG_LCG64); in unpack_rng()

1234567