aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: read /dev/urandom  (Read 1840 times)

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
read /dev/urandom
« on: August 06, 2008, 10:51:49 AM »

After receiving a bug report and doing some research I found a Debian bug report. (If you read it and notice something, I already talked to people about it.)

Anyway, it seems that calling CryptoPP::AutoSeededRandomPool will cause problems with a drained /dev/urandom (how this can happen is a mistery to me, but apparently it does) and this can be solved by using another random number generator (Debian uses CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>).

Are there any reasons not to switch to another random number generator? The patch doesn't apply anymore, but we still call it in EncryptedStreamSocket.cpp and abstracted in RandomFunctions.cpp, where it seems to cause the problem reported by Par@noid.
Logged