| 24 | } |
| 25 | |
| 26 | void RandomPool::IncorporateEntropy(const byte *input, size_t length) |
| 27 | { |
| 28 | SHA256 hash; |
| 29 | hash.Update(m_key, 32); |
| 30 | hash.Update(input, length); |
| 31 | hash.Final(m_key); |
| 32 | m_keySet = false; |
| 33 | } |
| 34 | |
| 35 | void RandomPool::GenerateIntoBufferedTransformation(BufferedTransformation &target, const std::string &channel, lword size) |
| 36 | { |