MCPcopy Create free account
hub / github.com/boostorg/filesystem / init_fill_random_impl

Function init_fill_random_impl

src/unique_path.cpp:293–304  ·  view source on GitHub ↗

Initializes fill_random implementation pointer

Source from the content-addressed store, hash-verified

291
292//! Initializes fill_random implementation pointer
293void init_fill_random_impl(unsigned int major_ver, unsigned int minor_ver, unsigned int patch_ver)
294{
295#if defined(BOOST_FILESYSTEM_HAS_INIT_PRIORITY) && \
296 (defined(BOOST_FILESYSTEM_HAS_GETRANDOM) || defined(BOOST_FILESYSTEM_HAS_GETRANDOM_SYSCALL))
297 fill_random_t* fr = &fill_random_dev_random;
298
299 if (major_ver > 3u || (major_ver == 3u && minor_ver >= 17u))
300 fr = &fill_random_getrandom;
301
302 filesystem::detail::atomic_store_relaxed(fill_random, fr);
303#endif
304}
305
306#endif // defined(linux) || defined(__linux) || defined(__linux__)
307

Callers 1

syscall_initializerMethod · 0.85

Calls 1

atomic_store_relaxedFunction · 0.85

Tested by

no test coverage detected