Branch: Tag:

1999-06-17

1999-06-17 14:21:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Optimized rc4_random->read() some.

Rev: lib/modules/Crypto/randomness.pmod:1.10

88:       string read(int len)    { -  return rc4::crypt(replace(allocate(len), 0, "\47") * ""); +  if (len > 16384) return read(len/2)+read(len-len/2); +  return rc4::crypt("\47" * len);    }   }