summaryrefslogtreecommitdiff
path: root/tests/rng-fork.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-02-26 23:41:26 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-02-27 17:00:20 +0100
commit5345fba0899b16548836eb57aecb38113db5735e (patch)
tree30245e8055f2240950a4a4a9ff3baad4ea7abc5b /tests/rng-fork.c
parent100bc501a4e850eb9ba21bb5088b2a582e422c80 (diff)
downloadgnutls-5345fba0899b16548836eb57aecb38113db5735e.tar.gz
fixed nonce generation after fork().
Diffstat (limited to 'tests/rng-fork.c')
-rw-r--r--tests/rng-fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rng-fork.c b/tests/rng-fork.c
index a977e1de56..8de886136d 100644
--- a/tests/rng-fork.c
+++ b/tests/rng-fork.c
@@ -64,7 +64,7 @@ doit (void)
if (fp == NULL)
fail("cannot open file");
- gnutls_rnd (GNUTLS_RND_RANDOM, buf1, sizeof (buf1));
+ gnutls_rnd (GNUTLS_RND_NONCE, buf1, sizeof (buf1));
if (debug) dump("buf1", buf1, sizeof(buf1));
fwrite(buf1, 1, sizeof(buf1), fp);
@@ -73,7 +73,7 @@ doit (void)
else
{
/* daddy */
- gnutls_rnd (GNUTLS_RND_RANDOM, buf2, sizeof (buf2));
+ gnutls_rnd (GNUTLS_RND_NONCE, buf2, sizeof (buf2));
if (debug) dump("buf2", buf2, sizeof(buf2));
waitpid(pid, NULL, 0);