aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_randomid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/resolv/res_randomid.c b/resolv/res_randomid.c
index 546daf4..366429c 100644
--- a/resolv/res_randomid.c
+++ b/resolv/res_randomid.c
@@ -84,9 +84,10 @@
#include <resolv.h>
#include <unistd.h>
+#include <random-bits.h>
unsigned int
res_randomid (void) {
- return 0xffff & __getpid ();
+ return 0xffff & random_bits ();
}
libc_hidden_def (__res_randomid)