)]}'
{
  "commit": "07739b7fcda32fcd04a95549f3d667e5ae51daf8",
  "tree": "3678fa5a5b5fb268e2141ccfee736c99afe26417",
  "parents": [
    "f0ee009aa85af1d2b684dbdfea3a6f066691b211"
  ],
  "author": {
    "name": "Laramie Leavitt",
    "email": "lar@google.com",
    "time": "Wed Nov 25 12:39:04 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Wed Nov 25 12:39:39 2026 -0800"
  },
  "message": "Fix `absl::discrete_distribution` edge-case weight and range initialization.\n\nPreviously, extreme or nearly normalized inputs could corrupt probabilities or\nsample impossible outcomes:\n* All-zero or overflowing finite weights divided `0/0` or `x/inf` into `NaN`,\n  and large weight vectors lost precision or skipped normalization when sums\n  were within `1e-6` of `1.0` (which could leave unpaired zero- or tiny-weight\n  alias entries clamped to certainty).\n* Evaluating the unary-operation constructor when `xmax - xmin` overflowed\n  `double` passed `inf`/`NaN` midpoints to the weight functor.\n\nAlso pass `probabilities` by reference in\n`random_internal::InitDiscreteDistribution`.\n\nOutput sequences may change where normalization previously drifted;\n`absl::discrete_distribution` does not guarantee cross-release stability.\n\nPiperOrigin-RevId: 1030123759\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "162e3281bcdd57e9c4c6e113845b489ac06bb199",
      "old_mode": 33188,
      "old_path": "absl/random/BUILD.bazel",
      "new_id": "e34ba039e9b2c3d7c075c8fa5d9a765b0125df38",
      "new_mode": 33188,
      "new_path": "absl/random/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "cef4ab511d1680c7e40af5e1a2c5347005161f69",
      "old_mode": 33188,
      "old_path": "absl/random/CMakeLists.txt",
      "new_id": "224a4775cd7acac881cacca684c7a1da36239e82",
      "new_mode": 33188,
      "new_path": "absl/random/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "247faa84fb1cb1a149d1f09e94c0e54a07fdac53",
      "old_mode": 33188,
      "old_path": "absl/random/discrete_distribution.cc",
      "new_id": "a6ea23188a56a5dfb34db671df43636fa199522d",
      "new_mode": 33188,
      "new_path": "absl/random/discrete_distribution.cc"
    },
    {
      "type": "modify",
      "old_id": "de710a98b2928afac2193f7d36c9c5e033c260e0",
      "old_mode": 33188,
      "old_path": "absl/random/discrete_distribution.h",
      "new_id": "51b3f905d31d5630a655afdd485910218675ad1f",
      "new_mode": 33188,
      "new_path": "absl/random/discrete_distribution.h"
    },
    {
      "type": "modify",
      "old_id": "8fffb41d0966f2efd7383c0b00d018a5917d5511",
      "old_mode": 33188,
      "old_path": "absl/random/discrete_distribution_test.cc",
      "new_id": "f2ac15b1e5e7c40c7fec6a1c679723cc4bcbecea",
      "new_mode": 33188,
      "new_path": "absl/random/discrete_distribution_test.cc"
    }
  ]
}
