From: Lennart Poettering Date: Wed, 17 Aug 2022 07:45:19 +0000 (+0200) Subject: random-util: drop unnecessary header file X-Git-Tag: v252-rc1~423 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=582fc142da1cc15df48d23ccbf79e7e09243ee6b;p=thirdparty%2Fsystemd.git random-util: drop unnecessary header file (And some minor reindents) --- diff --git a/src/basic/random-util.c b/src/basic/random-util.c index 9423a0805dd..d8734cc7d0f 100644 --- a/src/basic/random-util.c +++ b/src/basic/random-util.c @@ -1,9 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ -#if defined(__i386__) || defined(__x86_64__) -#include -#endif - #include #include #include @@ -33,11 +29,10 @@ #include "sha256.h" #include "time-util.h" -/* This is a "best effort" kind of thing, but has no real security value. - * So, this should only be used by random_bytes(), which is not meant for - * crypto. This could be made better, but we're *not* trying to roll a - * userspace prng here, or even have forward secrecy, but rather just do - * the shortest thing that is at least better than libc rand(). */ +/* This is a "best effort" kind of thing, but has no real security value. So, this should only be used by + * random_bytes(), which is not meant for crypto. This could be made better, but we're *not* trying to roll a + * userspace prng here, or even have forward secrecy, but rather just do the shortest thing that is at least + * better than libc rand(). */ static void fallback_random_bytes(void *p, size_t n) { static thread_local uint64_t fallback_counter = 0; struct { @@ -53,7 +48,7 @@ static void fallback_random_bytes(void *p, size_t n) { .stamp_mono = now(CLOCK_MONOTONIC), .stamp_real = now(CLOCK_REALTIME), .pid = getpid(), - .tid = gettid() + .tid = gettid(), }; #if HAVE_SYS_AUXV_H