Skip to content

Relicense random-inl.h from CC0 to BSD-3-Clause-Attribution#3028

Open
DiamonDinoia wants to merge 2 commits into
google:masterfrom
DiamonDinoia:fix/random-license-bsd3
Open

Relicense random-inl.h from CC0 to BSD-3-Clause-Attribution#3028
DiamonDinoia wants to merge 2 commits into
google:masterfrom
DiamonDinoia:fix/random-license-bsd3

Conversation

@DiamonDinoia
Copy link
Copy Markdown
Contributor

@DiamonDinoia DiamonDinoia commented Apr 30, 2026

Closes #3026.

CC0 is discouraged for code in some legal regimes — Fedora's allowed-licenses guidance flags it because copyright durations vary by jurisdiction and the extent to which copyright can be waived isn't uniform. Per the discussion on #3026, this PR moves hwy/contrib/random/random-inl.h to BSD-3-Clause-Attribution (Fedora-approved) while preserving credit to the xoshiro256++ authors (David Blackman and Sebastiano Vigna).

Changes

  • hwy/contrib/random/random-inl.h: replaced CC0 header with SPDX-License-Identifier: BSD-3-Clause-Attribution + a pointer to the LICENSE file. Algorithm attribution to Blackman/Vigna preserved.

…ibution

Replace the CC0 1.0 license with BSD-3-Clause-Attribution for
hwy/contrib/random/random-inl.h. CC0 is discouraged for code under
some legal regimes (see Fedora's allowed-licenses guidance), so this
moves the file to a Fedora-approved BSD variant while preserving
attribution to the xoshiro256++ algorithm authors (David Blackman and
Sebastiano Vigna).

Refs: google#3026
@jan-wassenberg
Copy link
Copy Markdown
Member

Thank you! Would you mind also removing from LICENSE the part "The following files are licensed under different terms: * hwy/contrib/random/random-inl.h: CC0 1.0 Universal",
plus the CC0 section starting around line 250 until EOF?

Per review feedback on PR google#3028, remove the per-file exemption and
the CC0 1.0 Universal full-text section from LICENSE. Update the SPDX
identifier in hwy/contrib/random/random-inl.h to the project's
standard 'Apache-2.0 OR BSD-3-Clause' so the file inherits the
top-level dual license.
@DiamonDinoia
Copy link
Copy Markdown
Contributor Author

DiamonDinoia commented Apr 30, 2026

Done — removed the CC0 exemption line plus the CC0 1.0 Universal full-text section from LICENSE. Also aligned the SPDX identifier in random-inl.h to Apache-2.0 OR BSD-3-Clause so the file now inherits the project's standard dual license (instead of BSD-3-Clause-Attribution, which would have required keeping a carve-out).

Copy link
Copy Markdown
Member

@jan-wassenberg jan-wassenberg left a comment

Choose a reason for hiding this comment

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

Perfect, thanks for making the changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

License for Xorshiro

2 participants