Subject: [Boost-bugs] [Boost C++ Libraries] #3672: make boost.random use /dev/urandom
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-25 19:33:22
#3672: make boost.random use /dev/urandom
----------------------------------------------------+-----------------------
Reporter: Sebastian Mingramm <s.mingramm@â¦> | Owner: no-maintainer
Type: Patches | Status: new
Milestone: Boost 1.42.0 | Component: random
Version: Boost 1.41.0 | Severity: Problem
Keywords: |
----------------------------------------------------+-----------------------
{{{
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
: <link>shared:<define>BOOST_RANDOM_DYN_LINK=1 ;
-------------------------
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3672> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC