Opened 13 years ago
Closed 13 years ago
#3672 closed Patches (fixed)
make boost.random use /dev/urandom
Reported by: | Owned by: | No-Maintainer | |
---|---|---|---|
Milestone: | Boost 1.42.0 | Component: | random |
Version: | Boost 1.41.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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 ; -------------------------
Note:
See TracTickets
for help on using tickets.
(In [60199]) Rearrange the componenents in libs/random and create a library for random_device. Fixes #3672