Skip to content

Conversation

@petk
Copy link
Member

@petk petk commented Aug 19, 2023

This updates README.REDIST.BINS from ext/standard/rand to current ext/random extension. Just to have it synced.

@petk petk added Quickfix Category: Documentation This is for documentation inside php-src, not on php.net labels Aug 19, 2023
@Girgias Girgias requested a review from TimWolla August 19, 2023 13:19
Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change clearly is correct, but:

  • Should this be applied to PHP 8.2?
  • PHP 8.2: Do we need also need entries for Xoshiro256** (CC-0) and PCG (apparently Apache)?
  • PHP 8.3: Do we need an entry for γ-section (scientific paper, see
    /* This file implements the γ-section algorithm as published in:
    *
    * Drawing Random Floating-Point Numbers from an Interval. Frédéric
    * Goualard, ACM Trans. Model. Comput. Simul., 32:3, 2022.
    * https://doi.org/10.1145/3503512
    */
    )

/cc @zeriyoshi

@petk petk force-pushed the patch-redist-bins branch from 177fd50 to 885db38 Compare August 21, 2023 15:34
@petk petk changed the base branch from master to PHP-8.2 August 21, 2023 15:34
@petk
Copy link
Member Author

petk commented Aug 21, 2023

Updated and added. For the gammasection.c we can add it in a separate PR. This probably then needs to be shortly noted in NEWS for PHP-8.2. I've changed the targeted branch now also.

This updates and adds attribution and license info about portions of
code used in ext/random:
- Portions of mt19937 code
- Portions of xoshiro256 code
- Portions of pcgoneseq128xslrr64 code
@petk petk force-pushed the patch-redist-bins branch from 885db38 to c6e9f8e Compare August 21, 2023 15:41
Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is accurate from a purely technical perspective. Whether it's the correct change in a legal sense, I defer to someone more qualified.

@petk petk changed the title Refactor attribution for ext/random/engine_mt19937.c Refactor attribution for code portions in ext/random via README.REDIST.BINS Aug 21, 2023
@petk petk closed this May 22, 2025
@petk petk deleted the patch-redist-bins branch May 22, 2025 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Documentation This is for documentation inside php-src, not on php.net Quickfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants