[v3] tr1/random: implement random_device

Albert Chin gcc-patches@mlists.thewrittenword.com
Sat Jun 10 18:08:00 GMT 2006


On Sat, Jun 10, 2006 at 01:40:14AM +0200, Paolo Carlini wrote:
> 2006-06-09  Paolo Carlini  <pcarlini@suse.de>
> 
> 	* acinclude.m4 ([GLIBCXX_CHECK_RANDOM_TR1]): New, check for
> 	the availability of "/dev/random" and "/dev/urandom".
> 	* configure.ac: Use it.
> 	* include/tr1/random (random_device): Implement, a fall-back for
> 	systems not providing "/dev/random" and "/dev/urandom" included.

On systems, without /dev/random, would allowing an option to specify a
path to a socket that entropy is provided on be viable? Systems
without /dev/random sometimes use PRNGd to gather entropy.

-- 
albert chin (china@thewrittenword.com)



More information about the Gcc-patches mailing list