]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
randutils: Move comment to correct place
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 28 Mar 2026 15:39:58 +0000 (16:39 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 15 Apr 2026 10:16:00 +0000 (12:16 +0200)
The comment is only valid if compiled with getrandom support.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
lib/randutils.c

index ae6ee27ad529384f955f138dc67232e03708a1cc..a1748285606a218d7e4b9cd4aacfbac898090cea 100644 (file)
@@ -131,12 +131,12 @@ ul_random_src_t ul_random_get_bytes(void *buf, size_t nbytes)
                return UL_RAND_GETRANDOM;
 
        if (errno == ENOSYS)
-#endif
        /*
         * We've been built against headers that support getrandom, but the
         * running kernel does not.  Fallback to reading from /dev/{u,}random
         * as before
         */
+#endif
        {
                int fd = random_get_fd(&src);