Landing: c638dae26f31

Project / Subsystem

gcc / libstdc++

Date

2026-09-16

Author

Tomasz Kamiński

Commit

c638dae26f3134951e11aafe696787f83121571c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
—
commit_hash
c638dae26f3134951e11aafe696787f83121571c
source_type
github
headline
libstdc++: Correct gamma distribution parameter updates
tldr
Ensured correct parameter updates for several C++ random number distributions, fixing PR123409.
author
Tomasz Kamiński
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gcc
  • • libstdc++
  • • random
  • • statistics
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-09-16T00:00:00.000Z

This commit rectifies an issue in GCC’s libstdc++ where the param() function for several random number distributions (negative_binomial_distribution, student_t_distribution, fisher_f_distribution) did not correctly update their underlying gamma distributions. By invoking the param() function on the respective internal gamma distribution members, the distributions now behave as expected, ensuring consistent random number generation. A new test case distribution_param.cc has been added to validate these corrections.