[PR #163] docs: document LEONIDA_RNG_SEED in runtime/README.md #215

Open
opened 2026-11-26 20:17:10 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/163
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9895


📝 Commits (1)

  • 164fa37 docs: document LEONIDA_RNG_SEED in runtime/README.md

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 runtime/README.md (+5 -0)

📄 Description

Carried over from old PR 9895 by neoisg8 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9895, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
neoisg8: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claimed in the coordination issue: https://github.com/ProjectLeonida/Leonida/issues/9677

Depends on: none.

What and why

tests/test_docs_env_vars.py was failing on main (e56d97950):

FAIL: test_every_variable_is_named_in_a_document
AssertionError: Lists differ: [('LEONIDA_RNG_SEED', 'runtime/shims/bcrypt_rng.cpp:80')] != [] : read by the code and named in no .md file:
  LEONIDA_RNG_SEED (runtime/shims/bcrypt_rng.cpp:80)

Commit 5d801afc1 (bcrypt_rng: fail closed on missing host CSPRNG and log seeded mode once) added deterministic seeding support in runtime/shims/bcrypt_rng.cpp:80 via LEONIDA_RNG_SEED, but the variable was not documented in any Markdown document.

This documents bcrypt.dll and LEONIDA_RNG_SEED in runtime/README.md under the shims section.

Tested

  • Windows 11 Pro 26100, Python 3.12.10, CPU only, no GPU, no game files.
  • Negative control on main (e56d97950):
    python -I tests/test_docs_env_vars.py -> FAILED (failures=1) reporting LEONIDA_RNG_SEED.
  • Positive control on fix/doc-leonida-rng-seed (164fa370f):
    python -I tests/test_docs_env_vars.py -> Ran 4 tests in 0.882s - OK.
  • Hygiene checks:
    python -I scripts/check_no_game_data.py runtime/README.md: clean.
    git diff --check origin/main: clean.

AI-assisted: yes.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable: docs-only change.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/163 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9895` --- ### 📝 Commits (1) - [`164fa37`](https://github.com/ubiquitarianism/leonida/commit/164fa370f37a1eedda9dc8e5e87c0da61a5ee1b3) docs: document LEONIDA_RNG_SEED in runtime/README.md ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `runtime/README.md` (+5 -0) </details> ### 📄 Description > Carried over from **old PR 9895** by `neoisg8` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9895`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `neoisg8`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claimed in the coordination issue: https://github.com/ProjectLeonida/Leonida/issues/9677 Depends on: none. ### What and why `tests/test_docs_env_vars.py` was failing on `main` (`e56d97950`): ```text FAIL: test_every_variable_is_named_in_a_document AssertionError: Lists differ: [('LEONIDA_RNG_SEED', 'runtime/shims/bcrypt_rng.cpp:80')] != [] : read by the code and named in no .md file: LEONIDA_RNG_SEED (runtime/shims/bcrypt_rng.cpp:80) ``` Commit `5d801afc1` (`bcrypt_rng: fail closed on missing host CSPRNG and log seeded mode once`) added deterministic seeding support in `runtime/shims/bcrypt_rng.cpp:80` via `LEONIDA_RNG_SEED`, but the variable was not documented in any Markdown document. This documents `bcrypt.dll` and `LEONIDA_RNG_SEED` in `runtime/README.md` under the shims section. ### Tested - Windows 11 Pro 26100, Python 3.12.10, CPU only, no GPU, no game files. - Negative control on `main` (`e56d97950`): `python -I tests/test_docs_env_vars.py` -> `FAILED (failures=1)` reporting `LEONIDA_RNG_SEED`. - Positive control on `fix/doc-leonida-rng-seed` (`164fa370f`): `python -I tests/test_docs_env_vars.py` -> `Ran 4 tests in 0.882s - OK`. - Hygiene checks: `python -I scripts/check_no_game_data.py runtime/README.md`: clean. `git diff --check origin/main`: clean. AI-assisted: yes. ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable: docs-only change.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#215
No description provided.