From 9f52c260e11c84c82e660a2f50ad4cfae7b19db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 29 May 2008 02:11:19 +0000 Subject: [PATCH] Make compile again. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23197 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hcrypto/rand-fortuna.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hcrypto/rand-fortuna.c b/lib/hcrypto/rand-fortuna.c index e484588c2..306cd1795 100644 --- a/lib/hcrypto/rand-fortuna.c +++ b/lib/hcrypto/rand-fortuna.c @@ -279,7 +279,7 @@ reseed(FState * st) md_update(&key_md, st->key, BLOCK); /* add pid to make output diverse after fork() */ - md_update(&key_md, &st->pid, sizeof(st->pid)); + md_update(&key_md, (const unsigned char *)&st->pid, sizeof(st->pid)); /* now we have new key */ md_result(&key_md, st->key); @@ -403,7 +403,7 @@ extract_data(FState * st, unsigned count, unsigned char *dst) /* If we forked, force a reseed again */ if (pid != st->pid) { st->pid = pid; - reseed(); + reseed(st); } while (count > 0)