Home
last modified time | relevance | path

Searched refs:SystemRandom (Results 1 – 25 of 30) sorted by relevance

12

/external/rust/crates/ring/tests/
Drand_tests.rs58 let rng = rand::SystemRandom::new(); in test_system_random_lengths()
73 test::compile_time_assert_clone::<rand::SystemRandom>(); in test_system_random_traits()
74 test::compile_time_assert_send::<rand::SystemRandom>(); in test_system_random_traits()
78 format!("{:?}", rand::SystemRandom::new()) in test_system_random_traits()
Decdsa_tests.rs108 let rng = rand::SystemRandom::new(); in ecdsa_generate_pkcs8_test()
233 let rng = rand::SystemRandom::new(); in signature_ecdsa_sign_fixed_sign_and_verify_test()
287 let rng = rand::SystemRandom::new(); in signature_ecdsa_sign_asn1_test()
Dagreement_tests.rs41 let rng = rand::SystemRandom::new(); in agreement_traits()
83 let rng = rand::SystemRandom::new(); in agreement_agree_ephemeral()
Dconstant_time_tests.rs28 let initial: [u8; 256] = rand::generate(&rand::SystemRandom::new()).unwrap().expose(); in test_verify_slices_are_equal()
Drsa_tests.rs77 let rng = rand::SystemRandom::new(); in test_signature_rsa_pkcs1_sign()
/external/python/cpython3/Lib/
Dsecrets.py19 from random import SystemRandom
21 _sysrand = SystemRandom()
Drandom.py770 class SystemRandom(Random): class
/external/rust/crates/ring/src/
Drand.rs147 pub struct SystemRandom(()); struct
149 impl SystemRandom { impl
157 impl sealed::SecureRandom for SystemRandom { implementation
164 impl crate::sealed::Sealed for SystemRandom {} implementation
Dhmac.rs368 let rng = rand::SystemRandom::new(); in hmac_signing_key_coverage()
/external/rust/crates/grpcio-sys/grpc/tools/profiling/microbenchmarks/bm_diff/
Dbm_run.py111 random.shuffle(jobs_list, random.SystemRandom().random)
Dbm_main.py135 random.shuffle(jobs_list, random.SystemRandom().random)
/external/grpc-grpc/tools/profiling/microbenchmarks/bm_diff/
Dbm_run.py116 random.shuffle(jobs_list, random.SystemRandom().random)
Dbm_main.py142 random.shuffle(jobs_list, random.SystemRandom().random)
/external/autotest/server/site_tests/firmware_SysfsVPD/
Dfirmware_SysfsVPD.py21 return ''.join(random.SystemRandom().choice(chars) for _ in range(length))
/external/python/cpython3/Doc/library/
Dsecrets.rst39 .. class:: SystemRandom
43 :class:`random.SystemRandom` for additional details.
/external/rust/crates/quiche/examples/
Dclient.rs104 SystemRandom::new().fill(&mut scid[..]).unwrap(); in main()
Dhttp3-client.rs105 SystemRandom::new().fill(&mut scid[..]).unwrap(); in main()
Dserver.rs107 let rng = SystemRandom::new(); in main()
Dhttp3-server.rs115 let rng = SystemRandom::new(); in main()
/external/rust/crates/ring/src/ec/suite_b/ecdsa/
Dsigning.rs115 let rng = rand::SystemRandom::new(); // TODO: make this a parameter. in from_pkcs8()
146 let rng = rand::SystemRandom::new(); // TODO: make this a parameter. in from_private_key_and_public_key()
/external/python/cpython2/Doc/library/
Drandom.rst60 The :mod:`random` module also provides the :class:`SystemRandom` class which
67 security purposes. Use :func:`os.urandom` or :class:`SystemRandom` if
308 .. class:: SystemRandom([seed])
/external/python/cpython2/Lib/test/
Dtest_random.py206 gen = random.SystemRandom()
632 random.SystemRandom().random()
/external/rust/crates/ring/src/rsa/
Dsigning.rs621 let rng = rand::SystemRandom::new(); in test_signature_rsa_pkcs1_sign_output_buffer_len()
/external/autotest/client/common_lib/
Dsoftware_manager.py37 r = random.SystemRandom()
/external/python/cpython2/Lib/
Drandom.py807 class SystemRandom(Random): class

12