SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
20
graphics/netpbm/patches/patch-lib_libpm_c
Normal file
20
graphics/netpbm/patches/patch-lib_libpm_c
Normal file
|
@ -0,0 +1,20 @@
|
|||
Index: lib/libpm.c
|
||||
--- lib/libpm.c.orig
|
||||
+++ lib/libpm.c
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */
|
||||
#define _XOPEN_SOURCE 500 /* Make sure ftello, fseeko are defined */
|
||||
+#define _BSD_SOURCE /* arc4random */
|
||||
|
||||
#include "netpbm/pm_config.h"
|
||||
|
||||
@@ -832,7 +833,7 @@ pm_arg0toprogname(const char arg0[]) {
|
||||
unsigned int
|
||||
pm_randseed(void) {
|
||||
|
||||
- return time(NULL) ^ getpid();
|
||||
+ return arc4random();
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue