mirror of
https://github.com/tig-foundation/tig-monorepo.git
synced 2026-02-21 10:27:49 +08:00
Clearly state in docs to use challenge.seed for StdRng.
This commit is contained in:
parent
74a1a53648
commit
34b78c2258
@ -135,7 +135,7 @@ language governing permissions and limitations under the License.
|
||||
* If you are copying and modifying an algorithm that has been submitted to TIG, make sure to use the `innovator_outbound` version
|
||||
* Do not include tests in your algorithm file. TIG will reject your algorithm submission.
|
||||
* Only your algorithm's rust code gets submitted. You should not be modifying `Cargo.toml` in `tig-algorithms`. Any extra dependencies you add will not be available when TIG compiles your algorithm
|
||||
* If you need to use random number generation be sure to use `StdRng::seed_from_u64` to ensure your algorithm is deterministic.
|
||||
* If you need to use random number generation be sure to use `let mut rng = StdRng::seed_from_u64(challenge.seed as u64)` to ensure your algorithm is deterministic.
|
||||
|
||||
## Locally Compiling Your Algorithm into WASM
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user