basic: move missing_random.h -> include/sys/random.h

This commit is contained in:
Yu Watanabe
2025-07-01 12:24:32 +09:00
parent 821b453170
commit 695921d7f8
3 changed files with 4 additions and 6 deletions
@@ -1,13 +1,11 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <sys/random.h> /* IWYU pragma: export */
#include "forward.h"
#include_next <sys/random.h>
/* Defined since glibc-2.32. */
#ifndef GRND_INSECURE
# define GRND_INSECURE 0x0004
#else
assert_cc(GRND_INSECURE == 0x0004);
_Static_assert(GRND_INSECURE == 0x0004, "");
#endif
+1 -1
View File
@@ -6,6 +6,7 @@
#include <string.h>
#include <sys/auxv.h>
#include <sys/ioctl.h>
#include <sys/random.h>
#include <threads.h>
#include <unistd.h>
@@ -15,7 +16,6 @@
#include "io-util.h"
#include "iovec-util.h"
#include "log.h"
#include "missing_random.h"
#include "parse-util.h"
#include "pidfd-util.h"
#include "process-util.h"