Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Komodo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dragoon
Komodo
Merge requests
!126
support proper 32-byte RNG seeds
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
support proper 32-byte RNG seeds
rng
into
main
Overview
0
Commits
9
Pipelines
4
Changes
7
Merged
STEVAN Antoine
requested to merge
rng
into
main
10 months ago
Overview
0
Commits
9
Pipelines
4
Changes
1
Expand
add optional
$.help
to argument
err
of
error throw
parse
prng_seed: [u8; 32]
in
rng
and
inbreeding
compute the "
local
" seed by hashing the "
global
" seed, the strategy and the iteration index
pass
--prng-seed: string
, a 64-char long seed to
inbreeding run
Edited
10 months ago
by
STEVAN Antoine
0
0
Merge request reports
Compare
version 1
version 3
29d2a3c1
10 months ago
version 2
947da4da
10 months ago
version 1
02a2ca68
10 months ago
main (base)
and
version 2
latest version
454b3a2a
9 commits,
10 months ago
version 3
29d2a3c1
8 commits,
10 months ago
version 2
947da4da
8 commits,
10 months ago
version 1
02a2ca68
7 commits,
10 months ago
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
bins/rng/src/main.rs
+
1
−
1
Options
@@ -27,7 +27,7 @@ struct Cli {
fn
main
()
{
let
cli
=
Cli
::
parse
();
let
mut
rng
=
StdRng
::
from_seed
(
cli
.prng_seed
.into
()
);
let
mut
rng
=
StdRng
::
from_seed
(
cli
.prng_seed
);
for
_
in
0
..
cli
.n
{
println!
(
"{}"
,
rng
.gen
::
<
u8
>
());
Loading