[botan-devel] AutoSeeded_RNG exception

Jack Lloyd lloyd at randombit.net
Thu Dec 19 18:24:10 EST 2013


This is definitely unexpected. Can you send code that reproduces the issue?
Offlist is fine. I was unable to reproduce this.


On Thu, Dec 19, 2013 at 05:55:22PM +0100, anton wrote:
> Hi, 
> I was wondering, if you could help me with my problem regarding to AutoSeeded_RNG class. I'm keep getting exception thrown saying 'Uninitialized in Library_State::algorithm_factory' when calling some method in my class from different threads. The method is for generating password salt and each time a new AutoSeeded_RNG object is created. First call to method works fine, but when another thread calls this method, an exception is thrown. I went through little debugging of botan library and I found out that somehow the global_lib_state object is set to zero on second attempt of creating AutoSeeded_RNG object. I have solved this temporarily by creating AutoSeeded_RNG private member of my class and for now it works fine.
> I am using static amalgamation version of Botan 1.10.6. and library is initialized in main function with "thread_safe=true".
> Thank you and best regards, Crt
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel

More information about the botan-devel mailing list