)]}'
{
  "commit": "bef769b3be16d7e7d011181a9bc8b80f8f3463bf",
  "tree": "6882a7dcd5284b89ad4beeba537eaf5d85693faa",
  "parents": [
    "14af6bae5308dd9f690e74ba348786e50f069c47"
  ],
  "author": {
    "name": "Laramie Leavitt",
    "email": "lar@google.com",
    "time": "Sun Nov 15 23:16:34 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Nov 20 13:06:34 2026 -0800"
  },
  "message": "Fix SeedSequence SFINAE, SaltedSeedSeq truncation salting, and reseed mixing.\n\nDO_NOT_SUBMIT: Found additional repairs\n\nCustom `SeedSequence` types, `absl::SeedSeq` overloads, and engine seeding\npreviously had several correctness gaps:\n* Passing an lvalue or `const` `absl::SeedSeq` to `absl::BitGen` or\n  `absl::InsecureBitGen` copied or re-wrapped it in another `SaltedSeedSeq`,\n  double-salting outputs or dropping entropy from stateful zero-size seeders;\n  brace-moving `absl::SeedSeq b{std::move(a)}` selected the `initializer_list`\n  constructor instead of moving, and `SaltedSeedSeq` permitted rvalue-reference\n  template arguments.\n* Narrow `SaltedSeedSeq::generate()` requests (`n \u003c min(60, 2 * s)`) mixed salt\n  only after `[rand.util.seedseq]` truncation collisions had already occurred;\n  expanding to `min(60, 2 * s)` words and folding both the salt and excess words\n  into the `n`-word output eliminates collisions up to 1,056 bits (`s \u003c\u003d 33`)\n  while keeping `size()` and `param()` unsalted.\n* Engine and `SaltedSeedSeq` `SeedSequence` overloads lacked uniform\n  `[rand.req.seedseq]` SFINAE constraints (including `result_type` validation\n  on `randen_engine` and `pcg_engine` and constraints on\n  `randen_engine::reseed()`), and seeding `randen_engine` with a 64-bit\n  `SeedSequence::result_type` overflowed its 32-bit seed buffer sizing.\n* `RandenPoolSeedSeq::generate()` wrote raw bytes directly into any pointer or\n  `std::vector\u003cU\u003e::iterator`, causing trap-representation UB on `bool*` and\n  corrupting non-integral targets assignable from `uint32_t`.\n* `randen_engine` decoupled `RandenPoolSeedSeq` via `IsDirectEntropySeedSeq`\n  (drawing 8 pool words directly into two even 128-bit rate lanes rather than\n  inferring pool seeding from `seq.size() \u003d\u003d 0`), and `reseed(seq)` now permutes\n  and domain-separates capacity before absorbing seed material while keeping all\n  constructors and `seed()` streams bit-identical.\n\nPiperOrigin-RevId: 1022538016\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cef4ab511d1680c7e40af5e1a2c5347005161f69",
      "old_mode": 33188,
      "old_path": "absl/random/CMakeLists.txt",
      "new_id": "7e4b1d1c0dafdd02f6f6e28963a1c6cbed9d45bb",
      "new_mode": 33188,
      "new_path": "absl/random/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "04f9a27c2b612d733cadb82f7b08a5f29d72e557",
      "old_mode": 33188,
      "old_path": "absl/random/internal/BUILD.bazel",
      "new_id": "251a3938f3c6b525f49d63558a7ecaed7df76140",
      "new_mode": 33188,
      "new_path": "absl/random/internal/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "d1442f8037cadf7f053e19274e986abca8401a1b",
      "old_mode": 33188,
      "old_path": "absl/random/internal/nonsecure_base.h",
      "new_id": "ec4604e04cbf97f03dee19bda711532ae3170508",
      "new_mode": 33188,
      "new_path": "absl/random/internal/nonsecure_base.h"
    },
    {
      "type": "modify",
      "old_id": "61f49cdfdb97c7618a521150c05424e1267fd62d",
      "old_mode": 33188,
      "old_path": "absl/random/internal/nonsecure_base_test.cc",
      "new_id": "be6f28dac7d56e894290c0f59cdced9390aa966c",
      "new_mode": 33188,
      "new_path": "absl/random/internal/nonsecure_base_test.cc"
    },
    {
      "type": "modify",
      "old_id": "e78539279790df016f54884474dc7eb24876d623",
      "old_mode": 33188,
      "old_path": "absl/random/internal/pcg_engine.h",
      "new_id": "3616163666b85791221742bf78ad30a7c3171efb",
      "new_mode": 33188,
      "new_path": "absl/random/internal/pcg_engine.h"
    },
    {
      "type": "modify",
      "old_id": "938dc85706d1c20ae2691d0e8e72be00d0743b1d",
      "old_mode": 33188,
      "old_path": "absl/random/internal/pcg_engine_test.cc",
      "new_id": "68daaed0a6e74e8b6b0c997de4544431b23a57f4",
      "new_mode": 33188,
      "new_path": "absl/random/internal/pcg_engine_test.cc"
    },
    {
      "type": "modify",
      "old_id": "0f51462c0ff758d76c5694e97234738145312015",
      "old_mode": 33188,
      "old_path": "absl/random/internal/randen_engine.h",
      "new_id": "d95116629553c14242fddf74c780c9bb5d77736b",
      "new_mode": 33188,
      "new_path": "absl/random/internal/randen_engine.h"
    },
    {
      "type": "modify",
      "old_id": "3f58184adbab5f53d392a7714522cee920049ffe",
      "old_mode": 33188,
      "old_path": "absl/random/internal/randen_engine_test.cc",
      "new_id": "e961371a367de1eb09d08120ee2ae0a7ee5ab750",
      "new_mode": 33188,
      "new_path": "absl/random/internal/randen_engine_test.cc"
    },
    {
      "type": "modify",
      "old_id": "858a90f68a072857b1b56356cce7510464f5948b",
      "old_mode": 33188,
      "old_path": "absl/random/internal/salted_seed_seq.h",
      "new_id": "ea77684d91e4f500220789836bf7ac6b8f8fcc32",
      "new_mode": 33188,
      "new_path": "absl/random/internal/salted_seed_seq.h"
    },
    {
      "type": "modify",
      "old_id": "3e8dfeb8e260ad69e8f6f075a633aa4fbe9ae000",
      "old_mode": 33188,
      "old_path": "absl/random/internal/salted_seed_seq_test.cc",
      "new_id": "d64f75784722227cfde6179e9841608d5c1f32a1",
      "new_mode": 33188,
      "new_path": "absl/random/internal/salted_seed_seq_test.cc"
    },
    {
      "type": "modify",
      "old_id": "8404d93fb700714779e9334e4b18751daa5c4fd0",
      "old_mode": 33188,
      "old_path": "absl/random/internal/traits.h",
      "new_id": "d57718bb2a18a07a13cb9e5ff32d4ef3fa48d28d",
      "new_mode": 33188,
      "new_path": "absl/random/internal/traits.h"
    },
    {
      "type": "modify",
      "old_id": "08361a4727cad340d22db29e9607d30ba488f281",
      "old_mode": 33188,
      "old_path": "absl/random/internal/traits_test.cc",
      "new_id": "b3288339f3a6c2571fdc8ae6f3b2ee633be70a21",
      "new_mode": 33188,
      "new_path": "absl/random/internal/traits_test.cc"
    }
  ]
}
