[Mono-devel-list] RSA construction trouble

Sébastien Pouliot spouliot at videotron.ca
Sat May 14 10:47:43 EDT 2005

Hello Thomas,

> When constructing many RSA instances in multiple threads [to help 
> simulate many users connecting to a licensing server] I've run 
> into errors with the random number generator.
> It throws a NullReferenceException when a few threads have 
> generated or are generating new keys (of size 384 to keep 
> processor load low).

This is probably hitting the RNG really hard but doesn't explain/excuse the exception.

> Are there any certain things that need to be done specially to 
> avoid such occurrences?

No as there shouldn't any exception when doing so.

Could you fill a bug @ bugzilla.ximian.com and supply
(a) the version of mono you're using (mono --version);
(b) the OS you're using (uname -a);
(c) some sample code (as small as possible);
(d) the full stack trace of the exception;

> I know that a bunch of RSA instances shouldn't be created as a 
> matter of design, but in the case that such a situation arises 
> it'd be good to know what's the best route.

Ok, so I won't say it ;-)

Sebastien Pouliot
home: spouliot at videotron.ca
blog: http://pages.infinit.net/ctech/poupou.html

More information about the Mono-devel-list mailing list