Skip to content

Commit

Permalink
h3: make grease_value() public (#1688)
Browse files Browse the repository at this point in the history
grease_value() generates an HTTP/3 GREASE value. Applications can
find this useful, so make it public.
  • Loading branch information
LPardue authored Dec 13, 2023
1 parent ea7eb85 commit 3ecde62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quiche/src/h3/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2716,7 +2716,7 @@ impl Connection {
}

/// Generates an HTTP/3 GREASE variable length integer.
fn grease_value() -> u64 {
pub fn grease_value() -> u64 {
let n = super::rand::rand_u64_uniform(148_764_065_110_560_899);
31 * n + 33
}
Expand Down

0 comments on commit 3ecde62

Please sign in to comment.