Branch: Tag:

2014-05-08

2014-05-08 13:11:54 by Martin Nilsson <nilsson@opera.com>

Relax the typing a bit, and add a missing integer sign check.

307:   this_program generate_key(int(128..) bits, function(int:string)|void r)   {    if (!r) -  r = [function(int:string)]Crypto.Random.random_string; +  r = Crypto.Random.random_string;    if (bits < 128)    error( "Ridiculously small key.\n" );