diff options
Diffstat (limited to 'src/clib/rand.c')
-rw-r--r-- | src/clib/rand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clib/rand.c b/src/clib/rand.c index 6b810060..426627a9 100644 --- a/src/clib/rand.c +++ b/src/clib/rand.c @@ -13,6 +13,7 @@ * PUBLIC: void srand __P((unsigned int)); * PUBLIC: #endif */ +#ifndef HAVE_RAND int rand(void) /* RAND_MAX assumed to be 32767 */ { DB_GLOBAL(rand_next) = DB_GLOBAL(rand_next) * 1103515245 + 12345; @@ -23,3 +24,4 @@ void srand(unsigned int seed) { DB_GLOBAL(rand_next) = seed; } +#endif |