[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #28878 [Core Tor/Tor]: Improve deterministic randomness in tests
#28878: Improve deterministic randomness in tests
-------------------------+-------------------------------------------------
Reporter: asn | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor: unspecified
Component: Core | Version:
Tor/Tor | Keywords: wtf-pad, tor-relay, tor-cell,
Severity: Normal | padding, tor-tests
Actual Points: | Parent ID: #28637
Points: | Reviewer:
Sponsor: |
-------------------------+-------------------------------------------------
As part of test_prob_distr.c in #28142, we implemented a deterministic
randomness system for the stochastic tests. There are various things we
can improve there:
a) Make it into its own subsystem so that other tests can also use it.
b) Don't use a uint32_t counter as the seed, because the byte order is
machine dependent. Instead make it a uint8_t[32] or something.
c) Allow users to overwrite the seed using environment variables or the
CLI. For now users have to tweak the `init_deterministic_rand()` func.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28878>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs