| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3982#note_3410614
|
| |
|
|
|
| |
Upstream rand have provided a convenient alias for causing your
program to panic. How helpful.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Fixes
warning: `rand::RngExt::random_range` does not refer to a reachable function
--> /volatile/rustcargo/Rustup/Arti/arti/clippy.toml:7:5
|
7 | { path = "rand::RngExt::random_range", reason = "Prefer tor_basic_utils::RngExt::gen_range_checked to avoid uncontrolled panics, or gen_range_infallible if applicable" },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add `allow-invalid = true` to the entry to suppress this warning
|
| |
|
|
|
|
|
|
|
|
|
| |
When the circ-padding feature is enabled, we use maybenot, which does
not yet support rand 0.10. In the meantime, enabling this feature pulls
in rand 0.9. This is not ideal, but should be okay as a temporary
situation.
This also replaces the use of ReseedingRng (which was removed in 0.10)
with the reseeding_rng crate. This is somewhat less performant, but it
should be okay.
|
| |
|
|
|
| |
By doing this, we make sure that everybody is using the correct
types and methods.
|
| |
|
|
|
|
|
|
|
|
| |
The retain method is broken on these types. I only tested
`WeakValueHashMap` and `WeakHashSet`, but it's likely that the other
types are broken as well.
We don't use this method currently, but it would be easy to accidentally
use it in the future. Let's try to catch this bug early, and if it
happens to get fixed, then it's easy to remove this lint.
|
| |
|
|
| |
rend_handshake time
|
| | |
|
| | |
|
| |
|
|
| |
- `Rng::gen_range()` has been renamed to `Rng::random_range()`
|
| |
|
|
| |
Part of #1493
|
| | |
|
| | |
|
| |
|
|
| |
Fixes #920
|
| | |
|
| | |
|
| |
|