summaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
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;