Reputation:
I'm using the c++ crypto library called Botan, and at arbitrary times I am getting the following error at runtime. What does it mean?
terminate called after throwing an instance of 'Botan::PRNG_Unseeded' what(): Botan: PRNG not seeded: X9.31(AES-256)
Upvotes: 3
Views: 947
Reputation: 31
I ran into the same error message, which was caused by missing any entropy source. You can try to enable a entropy source when building Botan library or generating single source file. For windows platform, add win32_stats module into option --enable-modules. For linux, use dev_random.
e.g. configure.py --enable-modules=win32_stats,...
Upvotes: 1
Reputation: 8405
The most likely answer is that you are using v 1.8.2 which had problems with its autoseeding routines. Upgrading to 1.8.4 or 1.8.5 has fixed this for everyone who had reported this problem up to now.
Upvotes: 0
Reputation: 135285
Well it looks to me like you forgot to seed the PRNG (pseudo random number generator). Having failed to do so, the Botan library threw the aforementioned exception which seems to have caused the terminate
function to be called.
Upvotes: 0