Hello, Found these two typos while browsing the code :)
Wanted to see how haproxy gets random bytes. That seed initialization code really goes out of its way to grab all entropy it can find! ^^ Best, ~Nico
>From b71acb32c4122819d50dac11ae60bb5cac1faba8 Mon Sep 17 00:00:00 2001 From: Nicolas CARPi <nico-git@deltablot.email> Date: Tue, 27 Aug 2024 22:02:17 +0200 Subject: [PATCH] CLEANUP: haproxy: fix typos in code comment Use "from" instead of "form" in ha_random_boot function code comments. --- src/haproxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/haproxy.c b/src/haproxy.c index f7bb5b5d8..21cdcb340 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -1417,11 +1417,11 @@ static void ha_random_boot(char *const *argv) m += 4; } - /* stack address (benefit form operating system's ASLR) */ + /* stack address (benefit from operating system's ASLR) */ l = (unsigned long)&m; memcpy(m, &l, sizeof(l)); m += sizeof(l); - /* argv address (benefit form operating system's ASLR) */ + /* argv address (benefit from operating system's ASLR) */ l = (unsigned long)&argv; memcpy(m, &l, sizeof(l)); m += sizeof(l); -- 2.46.0