Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
39eefd0c
Commit
39eefd0c
authored
Dec 03, 2014
by
Alexandre Duret-Lutz
Browse files
* src/misc/random.cc: Declare the generator as static.
parent
c0e98912
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/misc/random.cc
View file @
39eefd0c
// -*- coding: utf-8 -*-
// Copyright (C) 2011, 2012, 2013 Laboratoire de Recherche et
Développement
// de l'Epita (LRDE).
// Copyright (C) 2011, 2012, 2013
, 2014
Laboratoire de Recherche et
//
Développement
de l'Epita (LRDE).
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie.
...
...
@@ -25,7 +25,7 @@
namespace
spot
{
std
::
mt19937
gen
;
static
std
::
mt19937
gen
;
void
srand
(
unsigned
int
seed
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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