x86_64: generate a seed for the RNG with RDRAND when available

This commit is contained in:
2026-03-14 22:18:47 +00:00
parent d2203d9a65
commit 72145257de
3 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#ifndef KERNEL_X86_64_RANDOM_H_
#define KERNEL_X86_64_RANDOM_H_
#include <stdbool.h>
#include <stdint.h>
extern bool ml_hwrng_available(void);
extern uint64_t ml_hwrng_generate(void);
#endif