Skip to content
Snippets Groups Projects
Commit c2d9083d authored by Haakan Younes's avatar Haakan Younes Committed by Paolo Carlini
Browse files

re PR libstdc++/55047 (operator() in std::exponential_distribution may call log(0))


2012-10-24   Haakan Younes  <hyounes@google.com>
	     Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/55047
	* include/bits/random.h (exponential_distribution<>::operator):
	Fix formula to std::log(result_type(1) - __aurng()).
	* include/bits/random.tcc: Likewise, everywhere.

Co-Authored-By: default avatarPaolo Carlini <paolo.carlini@oracle.com>

From-SVN: r192762
parent c6c08485
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment