[Mono-devel-list] RSA construction trouble

Thomas Harning Jr. harningt at gmail.com
Fri May 13 22:29:30 EDT 2005


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).
Are there any certain things that need to be done specially to avoid such occurrences?
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.
-- 
Thomas Harning Jr.



More information about the Mono-devel-list mailing list