summary refs log tree commit diff
path: root/src/libnm-glib-aux/nm-random-utils.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2025-02-12 13:46:50 +0100
committerMichael Biebl <biebl@debian.org>2025-02-12 13:46:50 +0100
commit8bdf070ff046f482f6eb5e2b15ebc216f5d1e3da (patch)
treef706478d189d54c6532e8863d4b0d5ff5575af60 /src/libnm-glib-aux/nm-random-utils.h
parent818258cf34b83fbc754633295e1052d4752d7b15 (diff)
New upstream version 1.51.90 upstream/1.51.90
Diffstat (limited to 'src/libnm-glib-aux/nm-random-utils.h')
-rw-r--r--src/libnm-glib-aux/nm-random-utils.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/libnm-glib-aux/nm-random-utils.h b/src/libnm-glib-aux/nm-random-utils.h
index 729d71a4..43501940 100644
--- a/src/libnm-glib-aux/nm-random-utils.h
+++ b/src/libnm-glib-aux/nm-random-utils.h
@@ -6,15 +6,7 @@
 #ifndef __NM_RANDOM_UTILS_H__
 #define __NM_RANDOM_UTILS_H__
 
-void nm_random_get_bytes_full(void *p, size_t n, gboolean *out_high_quality);
-
-static inline void
-nm_random_get_bytes(void *p, size_t n)
-{
-    nm_random_get_bytes_full(p, n, NULL);
-}
-
-int nm_random_get_crypto_bytes(void *p, size_t n);
+void nm_random_get_bytes(void *p, size_t n);
 
 static inline guint32
 nm_random_u32(void)
@@ -43,12 +35,6 @@ nm_random_bool(void)
     return ch % 2u;
 }
 
-guint64 nm_random_u64_range_full(guint64 begin, guint64 end, gboolean crypto_bytes);
-
-static inline guint64
-nm_random_u64_range(guint64 end)
-{
-    return nm_random_u64_range_full(0, end, FALSE);
-}
+guint64 nm_random_u64_range(guint64 begin, guint64 end);
 
 #endif /* __NM_RANDOM_UTILS_H__ */