openbsd-ports/net/ipv6-toolkit/patches/patch-tools_addr6_c
bluhm 4b1c983079 Shut up the compiler and linker warnings in ipv6-toolkit.
- use arc4random(3)
- make include fix smaller
- silence uninitialized variable warning
- replace strncat with strlcat
OK naddy@
2013-09-26 21:52:35 +00:00

15 lines
411 B
Plaintext

$OpenBSD: patch-tools_addr6_c,v 1.1 2013/09/26 21:52:35 bluhm Exp $
--- tools/addr6.c.orig Sat Aug 10 08:43:26 2013
+++ tools/addr6.c Sun Sep 8 20:37:06 2013
@@ -1437,8 +1437,8 @@ int init_host_list(struct host_list *hlist){
hlist->nhosts= 0;
hlist->maxhosts= MAX_HOST_ENTRIES;
- hlist->key_l= rand();
- hlist->key_h= rand();
+ hlist->key_l= arc4random();
+ hlist->key_h= arc4random();
return(1);
}