openbsd-ports/net/radiusd-lucent/patches/patch-radius_src_radpass_c

15 lines
428 B
Plaintext

$OpenBSD: patch-radius_src_radpass_c,v 1.1 2001/11/20 19:20:59 danh Exp $
--- radius/src/radpass.c.orig Tue Nov 20 14:18:36 2001
+++ radius/src/radpass.c Tue Nov 20 14:18:49 2001
@@ -320,9 +320,8 @@ u_char *vector;
int randno;
int i;
- srand(time(0));
for(i = 0;i < AUTH_VECTOR_LEN;) {
- randno = rand();
+ randno = arc4random();
memcpy(vector, &randno, sizeof(int));
vector += sizeof(int);
i += sizeof(int);