FS#12422 - Boost.Random non-deterministic random number generator

Attached to Project: Arch Linux
Opened by Ricardo Hz (rata) - Friday, 12 December 2008, 05:10 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 14 April 2009, 21:51 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Architecture i686
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Could you please add the libboost_random.so and libboost_random-mt.so libraries to the Boost package?
This dynamic libraries contain the code for a non-deterministic random number generator for Linux.

Additional info:
* package version(s): boost-1.36.0-2

In order to compile the Boost.Random non-deterministic random number generator from the Boost sources, you should create the 'libs/random/build' directory and put this file into it with the name Jamfile.v2

===== BEGIN OF FILE =====

project boost/random
: source-location ../ ;

SOURCES = random_device ;

lib boost_random
: $(SOURCES).cpp
: <link>shared:<define>BOOST_RANDOM_DYN_LINK=1 ;

===== END OF FILE =====

Best regards,

Ricardo Honorato
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 14 April 2009, 21:51 GMT
Reason for closing:  Not a bug
Comment by Glenn Matthys (RedShift) - Friday, 12 December 2008, 08:52 GMT
Are there applications that require this random number generator?
Comment by Ricardo Hz (rata) - Friday, 12 December 2008, 16:36 GMT
No, but Archers are not only users, there are also developers. And as a scientific developer, I continuously require this random number generator because of its high-quality.
In addition, the binaries are so tiny in size and easy to compile that I see no reason to not package them into Boost.
Comment by Lionel Ott (WhiteMagic) - Sunday, 22 March 2009, 07:53 GMT
Boost random is per default a header only library. The reason why the nondeterministic parts won't work is because an implementation of a randem_device is missing. There exists a sample implementation using /dev/urandom in the boost sources under libs/random/. Boost itself does not intend to compile this sample implementation into a library (as can be seen from the ./configure output).
So in short if someone wants to use the nondeterministc random number generaters then he/she should copy the sample implementation from the boost sources into his/her project and use it from there.

Loading...