]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/auth/Crypto.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / auth / Crypto.cc
index 2dda80e2b04b54f58e80ab9bfe6d4586ec3a5fd2..c96222feafcb864ca44ca8fc215417cdac302514 100644 (file)
 #include "common/debug.h"
 #include <errno.h>
 
-// use getentropy() if available. it uses the same source of randomness
-// as /dev/urandom without the filesystem overhead
-#ifdef HAVE_GETENTROPY
-
-#include <unistd.h>
-
 using std::ostringstream;
 using std::string;
 
@@ -46,6 +40,12 @@ using ceph::bufferlist;
 using ceph::bufferptr;
 using ceph::Formatter;
 
+// use getentropy() if available. it uses the same source of randomness
+// as /dev/urandom without the filesystem overhead
+#ifdef HAVE_GETENTROPY
+
+#include <unistd.h>
+
 static bool getentropy_works()
 {
   char buf;