]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/uuid/detail/random_provider_arc4random.ipp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / uuid / detail / random_provider_arc4random.ipp
index 6facf28718bfdc26d1f7b835b5fcb99caea76864..bb25f03583d6928f2df2771561bced8caacd4aae 100644 (file)
@@ -3,13 +3,14 @@
 //
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
-//   http://www.boost.org/LICENCE_1_0.txt)
+//   https://www.boost.org/LICENSE_1_0.txt)
 //
 // "A Replacement Call for Random"
 // https://man.openbsd.org/arc4random.3
 //
 
-#include <stdlib.h> 
+#include <cstddef>
+#include <stdlib.h>
 
 namespace boost {
 namespace uuids {
@@ -21,7 +22,7 @@ class random_provider_base
     //! Obtain entropy and place it into a memory location
     //! \param[in]  buf  the location to write entropy
     //! \param[in]  siz  the number of bytes to acquire
-    void get_random_bytes(void *buf, size_t siz)
+    void get_random_bytes(void *buf, std::size_t siz)
     {
         arc4random_buf(buf, siz);
     }