]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/auth/Crypto.h
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / auth / Crypto.h
index c3ace5c8aff5a67074a08b9f26217653d32ef623..5ccc20fd56edcd29bb132e65b7bae38a7745eaec 100644 (file)
@@ -29,13 +29,14 @@ namespace ceph { class Formatter; }
  * Random byte stream generator suitable for cryptographic use
  */
 class CryptoRandom {
-  const int fd;
- public:
+public:
   CryptoRandom(); // throws on failure
   ~CryptoRandom();
-
   /// copy up to 256 random bytes into the given buffer. throws on failure
   void get_bytes(char *buf, int len);
+private:
+  static int open_urandom();
+  const int fd;
 };
 
 /*