Branch: Tag:

2014-04-05

2014-04-05 23:22:55 by Martin Nilsson <nilsson@opera.com>

Address fallout from stronger random type.

163: Inside #if constant(Crypto.Hash)
   if (random)    cookie = replace(random(len), "\0", "\1");    else -  cookie = replace(Crypto.Random.random_string(len), "\0", "\1"); +  cookie = replace(Crypto.Random.random_string([int(0..)]len), "\0", "\1");    break;    default:    error( "Unknown type.\n" );
308: Inside #if constant(Crypto.Hash)
  this_program generate_key(int(128..) bits, function(int:string)|void r)   {    if (!r) -  r = Crypto.Random.random_string; +  r = [function(int:string)]Crypto.Random.random_string;    if (bits < 128)    error( "Ridiculously small key.\n" );