diff options
author | provos <> | 1997-04-23 22:37:50 +0000 |
---|---|---|
committer | provos <> | 1997-04-23 22:37:50 +0000 |
commit | da017e944cbdca423bc11e829ab905ef6836a898 (patch) | |
tree | dbf55f7f4753ed364fce259567bfd136b9bac43a /src/lib/libc/net/res_random.c | |
parent | 793da85676dc330340a252f19fd2b2d8ef507ac8 (diff) | |
download | openbsd-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.c | 10 |
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; | |||
92 | static u_int32_t tmp; /* Storage for unused random */ | 92 | static u_int32_t tmp; /* Storage for unused random */ |
93 | static struct timeval tv; | 93 | static struct timeval tv; |
94 | 94 | ||
95 | static u_int32_t pmod __P((u_int32_t, u_int32_t, u_int32_t)); | 95 | static u_int16_t pmod __P((u_int16_t, u_int16_t, u_int16_t)); |
96 | static void res_initid __P((void)); | 96 | static 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 | ||
103 | static u_int32_t | 103 | static u_int16_t |
104 | pmod(gen, exp, mod) | 104 | pmod(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; |