2
* /dev/random EntropySource
3
* (C) 1999-2009 Jack Lloyd
5
* Botan is released under the Simplified BSD License (see license.txt)
8
#ifndef BOTAN_ENTROPY_SRC_DEVICE_H_
9
#define BOTAN_ENTROPY_SRC_DEVICE_H_
11
#include <botan/entropy_src.h>
18
* Entropy source reading from kernel devices like /dev/random
20
class Device_EntropySource final : public Entropy_Source
23
std::string name() const override { return "dev_random"; }
25
size_t poll(RandomNumberGenerator& rng) override;
27
explicit Device_EntropySource(const std::vector<std::string>& fsnames);
29
~Device_EntropySource();
31
std::vector<int> m_dev_fds;