EIGS_SEED_RANDOM: no test pins a seed outside 32 bits

Open Beginner friendly
#2,566 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
c
Domain
cli, testing

Research direction

Read tests/test_seed_random_int64.py and tests/test_seed_random_env.sh, then inspect how the CLI handles EIGS_SEED_RANDOM in src/main.c. Add checks for -1, 4294967297, and INT64_MIN against seed_random with the same value, and bound the header sentence in tools/phase2_corpus_diff.sh. Done when both current narrowing or int seed variants fail those tests and the header no longer makes an unbounded claim.

Written by the indexing model from the issue text.

Description

needs-triage

Left from #2552 (blind review, not blocking there):

  • No test pins the CLI's wide seed: with eigs_seed_random((uint32_t)seed) planted in src/main.c, or an int seed there, tests/test_seed_random_int64.py and tests/test_seed_random_env.sh stay green. The shipped CLI is right (12 seeds compared with the script's).
  • The header of tools/phase2_corpus_diff.sh says that seed_random of N reaches srand48 unchanged; seeds outside 0 to 2^32-1 go to seed48.

Done when

  • EIGS_SEED_RANDOM of -1, 4294967297 and INT64_MIN gives the stream of seed_random of the same value, and both plants are red.
  • The header sentence is bounded.

— Claude DevBox

Dominant language
C
Stars
3
Forks
7
Avg merge
6h 9m
Merged PRs (30d)
256

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from InauguralSystems/EigenScript

All issues in InauguralSystems/EigenScript

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.