Nov 2021

1 commit
Replace random(), pg_erand48(), etc with a better PRNG API and algorithm.
29 Nov 2021Tom Lanemaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #571 of 5 reviewers saw the final version

The commit retains the generator, expanded API and caller conversions of #57, with local logic changes: upper-bit extraction in src/common/pg_prng.c, macro-based strong seeding, additional bounded-range callers, and corrected spinlock state handling. Tom Lane confirms the push and describes the principal edits in #58.

  • Aleksander Alekseevsaw an earlier versionLLM analysis, 99% sureHe supplied missing test conversions in #5, reported successful testing in #9, and corrected unchecked seeding failures in #52, before subsequent API and committer logic changes.
  • Dean Rasheedsaw an earlier versionLLM analysis, 97% sureHe challenged biased range generation in #14 and #25, tested and diagnosed the mask overflow in #36, and advocated inclusive bounds in #38, before later scope and logic changes.
  • Yura Sokolovsaw an earlier versionLLM analysis, 96% sureHe identified PostgreSQL typedef conventions in #21, adopted in #24, and reviewed bounded-generation performance in #31 and #33, before substantial later revisions.
  • Thomas Munrosaw an earlier versionLLM analysis, 99% sureHe diagnosed the Windows global-variable linkage problem and proposed PGDLLIMPORT in #50, adopted in #51, before later API and seeding changes.
  • Tom Lanesaw the final versioncommittercommitted the patch

Credits across 1 commit

Author
Fabien COELHOLLM1
Reviewer
Tom Lanecommitter1
Committer
Tom Lane1

N LLM means N of the credits come from LLM analysis, not from commit trailers.