]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: h1: use ha_random64_pair_hashed() for the WebSocket key
authorWilly Tarreau <w@1wt.eu>
Mon, 25 May 2026 16:23:30 +0000 (18:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 May 2026 11:13:24 +0000 (13:13 +0200)
commit7ac4d7d69f3abbbbbbd43efe8cc68962aae3252e
tree9d72edb3a9dac7ac0da565653c801c24f227d72a
parent85003563c5bbadd3f1197fb3f2801abb933566e3
MEDIUM: h1: use ha_random64_pair_hashed() for the WebSocket key

Instead of using two consecutive calls to ha_random64(), let's use the
cleaner and safer ha_random64_pair_hashed(). This way the internal
PRNG state will not leak into the emitted headers.
src/h1.c