aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/random.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-23 19:28:08 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-23 19:28:08 -0400
commitfcda36561d668f43bac91ea31cd55cbbd605d330 (patch)
treeeb74c0b17df584af0fd8154422ad924e04c96cc2 /src/stdlib/random.h
parent414b0c7472c87c5a013029aefef49e2dbc41e700 (diff)
Autoformat everything with clang-format
Diffstat (limited to 'src/stdlib/random.h')
-rw-r--r--src/stdlib/random.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stdlib/random.h b/src/stdlib/random.h
index 8509dbd7..1a6e89a5 100644
--- a/src/stdlib/random.h
+++ b/src/stdlib/random.h
@@ -1,5 +1,5 @@
-#include <stdint.h>
#include <assert.h>
+#include <stdint.h>
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
#include <stdlib.h>
@@ -10,9 +10,9 @@ static ssize_t getrandom(void *buf, size_t buflen, unsigned int flags) {
}
#elif defined(__linux__)
// Use getrandom()
-# include <sys/random.h>
+#include <sys/random.h>
#else
- #error "Unsupported platform for secure random number generation"
+#error "Unsupported platform for secure random number generation"
#endif
static int64_t random_range(int64_t low, int64_t high) {