EIGS_SEED_RANDOM: no test pins a seed outside 32 bits

オープン 初心者向け
#2,566 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
c
領域
cli, testing

調査の方向性

tests/test_seed_random_int64.py と tests/test_seed_random_env.sh を読み、次に src/main.c で CLI が EIGS_SEED_RANDOM をどのように処理するかを調べてください。-1、4294967297、INT64_MIN について、同じ値の seed_random と照合するチェックを追加し、tools/phase2_corpus_diff.sh のヘッダー文の主張範囲を限定してください。現在のナローイング版と int シード版の両方がこれらのテストに失敗し、ヘッダーが無制限な主張をしなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C
スター
3
フォーク
7
平均マージ
6時間 9分
マージ済み PR(30日)
256

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。