aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2020-01-20 23:43:47 +0000
committerConrad Meyer <cem@FreeBSD.org>2020-01-20 23:43:47 +0000
commit6ee287b9c26180b480620ddad1a11b006adc9d49 (patch)
treeafb88b5e1d7935d8e9c63c68bbaa15fb3a971192 /lib/libc/stdlib
parent1e40fe41c544c82b4e0e1a078664eb16cae53c5c (diff)
downloadsrc-6ee287b9c26180b480620ddad1a11b006adc9d49.tar.gz
src-6ee287b9c26180b480620ddad1a11b006adc9d49.zip
libc: Delete unused rand.c ifdef TEST code
Notes
Notes: svn path=/head/; revision=356934
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/rand.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/lib/libc/stdlib/rand.c b/lib/libc/stdlib/rand.c
index 3722e850549c..0d38a579b168 100644
--- a/lib/libc/stdlib/rand.c
+++ b/lib/libc/stdlib/rand.c
@@ -45,10 +45,6 @@ __FBSDID("$FreeBSD$");
#include <syslog.h>
#include "un-namespace.h"
-#ifdef TEST
-#include <stdio.h>
-#endif /* TEST */
-
static int
do_rand(unsigned long *ctx)
{
@@ -116,33 +112,3 @@ __sranddev_fbsd12(void)
}
}
__sym_compat(sranddev, __sranddev_fbsd12, FBSD_1.0);
-
-
-#ifdef TEST
-
-main()
-{
- int i;
- unsigned myseed;
-
- printf("seeding rand with 0x19610910: \n");
- srand(0x19610910);
-
- printf("generating three pseudo-random numbers:\n");
- for (i = 0; i < 3; i++)
- {
- printf("next random number = %d\n", rand());
- }
-
- printf("generating the same sequence with rand_r:\n");
- myseed = 0x19610910;
- for (i = 0; i < 3; i++)
- {
- printf("next random number = %d\n", rand_r(&myseed));
- }
-
- return 0;
-}
-
-#endif /* TEST */
-