Boost C++ Libraries: Ticket #3672: make boost.random use /dev/urandom https://svn.boost.org/trac10/ticket/3672 <pre class="wiki">The following stuff is applied by the gentoo ebuild for all boost versions. It's supposed to make boost.random use /dev/urandom if available. Please review and consider inclusion. ------------------------ # This enables building the boost.random library with /dev/urandom support if [[ -e /dev/urandom ]] ; then mkdir -p libs/random/build cp "${FILESDIR}/random-Jamfile" libs/random/build/Jamfile.v2 # yeah, we WANT it to work on non-Linux too sed -i -e 's/#ifdef __linux__/#if 1/' libs/random/random_device.cpp || die fi ------------------------- ${FILESDIR}/random-Jamfile: ------------------------- # Copyright (c) 2006 Tiziano Mueller # # Use, modification and distribution of the file is subject to the # Boost Software License, Version 1.0. # (See at http://www.boost.org/LICENSE_1_0.txt) project boost/random : source-location ../ ; SOURCES = random_device ; lib boost_random : $(SOURCES).cpp : &lt;link&gt;shared:&lt;define&gt;BOOST_RANDOM_DYN_LINK=1 ; ------------------------- </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3672 Trac 1.4.3 Steven Watanabe Fri, 05 Mar 2010 19:12:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3672#comment:1 https://svn.boost.org/trac10/ticket/3672#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/60199" title="Rearrange the componenents in libs/random and create a library for ...">[60199]</a>) Rearrange the componenents in libs/random and create a library for random_device. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3672" title="#3672: Patches: make boost.random use /dev/urandom (closed: fixed)">#3672</a> </p> Ticket