summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_random.c
diff options
context:
space:
mode:
authorprovos <>1997-04-23 22:37:50 +0000
committerprovos <>1997-04-23 22:37:50 +0000
commitda017e944cbdca423bc11e829ab905ef6836a898 (patch)
treedbf55f7f4753ed364fce259567bfd136b9bac43a /src/lib/libc/net/res_random.c
parent793da85676dc330340a252f19fd2b2d8ef507ac8 (diff)
downloadopenbsd-da017e944cbdca423bc11e829ab905ef6836a898.tar.gz
openbsd-da017e944cbdca423bc11e829ab905ef6836a898.tar.bz2
openbsd-da017e944cbdca423bc11e829ab905ef6836a898.zip
pmod to u_int16_t, Angelos kindly reminded me
Diffstat (limited to 'src/lib/libc/net/res_random.c')
-rw-r--r--src/lib/libc/net/res_random.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/net/res_random.c b/src/lib/libc/net/res_random.c
index 3767d9315f..2fead78e9c 100644
--- a/src/lib/libc/net/res_random.c
+++ b/src/lib/libc/net/res_random.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_random.c,v 1.3 1997/04/19 10:07:01 provos Exp $ */ 1/* $OpenBSD: res_random.c,v 1.4 1997/04/23 22:37:50 provos Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@@ -92,7 +92,7 @@ static long ru_reseed;
92static u_int32_t tmp; /* Storage for unused random */ 92static u_int32_t tmp; /* Storage for unused random */
93static struct timeval tv; 93static struct timeval tv;
94 94
95static u_int32_t pmod __P((u_int32_t, u_int32_t, u_int32_t)); 95static u_int16_t pmod __P((u_int16_t, u_int16_t, u_int16_t));
96static void res_initid __P((void)); 96static void res_initid __P((void));
97 97
98/* 98/*
@@ -100,11 +100,11 @@ static void res_initid __P((void));
100 * of 0 - (mod-1) 100 * of 0 - (mod-1)
101 */ 101 */
102 102
103static u_int32_t 103static u_int16_t
104pmod(gen, exp, mod) 104pmod(gen, exp, mod)
105 u_int32_t gen, exp, mod; 105 u_int16_t gen, exp, mod;
106{ 106{
107 u_int32_t s, t, u; 107 u_int16_t s, t, u;
108 108
109 s = 1; 109 s = 1;
110 t = gen; 110 t = gen;