From: Pekka Riikonen Date: Fri, 23 Feb 2001 21:53:45 +0000 (+0000) Subject: update X-Git-Tag: SILC.0.1~177 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=4091d921de0cc20beacb68d0ca35450586324472 update --- diff --git a/lib/silccore/silcpacket.c b/lib/silccore/silcpacket.c index 52d60f4e..39e2865a 100644 --- a/lib/silccore/silcpacket.c +++ b/lib/silccore/silcpacket.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2000 Pekka Riikonen + Copyright (C) 1997 - 2001 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -209,7 +209,7 @@ void silc_packet_assemble(SilcPacketContext *ctx) /* Get random padding */ #if 1 - for (i = 0; i < ctx->padlen; i++) tmppad[i] = silc_rng_get_byte(ctx->rng); + for (i = 0; i < ctx->padlen; i++) tmppad[i] = silc_rng_global_get_byte(); #else /* XXX: For testing - to be removed */ memset(tmppad, 65, sizeof(tmppad)); diff --git a/lib/silccore/silcpacket.h b/lib/silccore/silcpacket.h index afa6e4f7..ff047ea8 100644 --- a/lib/silccore/silcpacket.h +++ b/lib/silccore/silcpacket.h @@ -129,9 +129,6 @@ typedef struct { unsigned short truelen; unsigned short padlen; - /* For padding generation */ - SilcRng rng; - /* Back pointers */ void *context; SilcSocketConnection sock;