aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-08-07 08:53:38 +0000
committerWerner Koch <[email protected]>1998-08-07 08:53:38 +0000
commit6d21f2838dcfee933f4c430fba68ba8ada3abd50 (patch)
treeecf44aec40a55d3fd46fc6a6d96bb3afa7901029 /g10/g10.c
parentadd salted and iterated mode (diff)
downloadgnupg-6d21f2838dcfee933f4c430fba68ba8ada3abd50.tar.gz
gnupg-6d21f2838dcfee933f4c430fba68ba8ada3abd50.zip
chnages done at the train
Diffstat (limited to 'g10/g10.c')
-rw-r--r--g10/g10.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/g10/g10.c b/g10/g10.c
index acc5bf691..8a04db161 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -969,13 +969,14 @@ main( int argc, char **argv )
{
int level = atoi(*argv);
for(;;) {
- int c = get_random_byte(level);
+ byte *p = get_random_bits( 8, level, 0);
if( argc == 1 ) {
- printf("%02x", c );
+ printf("%02x", *p );
fflush(stdout);
}
else
putchar(c&0xff);
+ m_free(p);
}
}
break;