Skip to content

Commit

Permalink
Use concrete rng seed type
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-yxchen committed Oct 20, 2023
1 parent 166752b commit fb1fa15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quinn-proto/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ impl Connection {
now: Instant,
version: u32,
allow_mtud: bool,
rng_seed: <StdRng as SeedableRng>::Seed,
rng_seed: [u8; 32],
) -> Self {
let side = if server_config.is_some() {
Side::Server
Expand Down
2 changes: 1 addition & 1 deletion quinn-proto/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl Endpoint {
config: Arc<EndpointConfig>,
server_config: Option<Arc<ServerConfig>>,
allow_mtud: bool,
rng_seed: Option<<StdRng as SeedableRng>::Seed>,
rng_seed: Option<[u8; 32]>,
) -> Self {
Self {
rng: rng_seed.map_or(StdRng::from_entropy(), StdRng::from_seed),
Expand Down

0 comments on commit fb1fa15

Please sign in to comment.