Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
96f0f7c0
Commit
96f0f7c0
authored
Jul 24, 2014
by
Tiago Peixoto
Browse files
Improve RNG seeding
parent
cd4cef2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/random.cc
View file @
96f0f7c0
...
...
@@ -19,5 +19,6 @@
rng_t
get_rng
(
size_t
seed
)
{
return
rng_t
(
static_cast
<
rng_t
::
result_type
>
(
seed
));
std
::
seed_seq
seq
{
seed
,
seed
+
1
,
seed
+
2
,
seed
+
3
,
seed
+
4
};
return
rng_t
(
seq
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment