mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-12 19:41:18 +02:00
20 lines
388 B
C
20 lines
388 B
C
--- lib/libpm.c.orig 2017-06-10 22:23:50 UTC
|
|
+++ lib/libpm.c
|
|
@@ -18,6 +17,7 @@
|
|
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
+#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
#include <setjmp.h>
|
|
@@ -824,7 +824,7 @@ pm_arg0toprogname(const char arg0[]) {
|
|
unsigned int
|
|
pm_randseed(void) {
|
|
|
|
- return time(NULL) ^ getpid();
|
|
+ return arc4random();
|
|
|
|
}
|
|
|