STXXL  1.4-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
seed.h
Go to the documentation of this file.
1 /***************************************************************************
2  * include/stxxl/bits/common/seed.h
3  *
4  * Part of the STXXL. See http://stxxl.sourceforge.net
5  *
6  * Copyright (C) 2007 Andreas Beckmann <[email protected]>
7  *
8  * Distributed under the Boost Software License, Version 1.0.
9  * (See accompanying file LICENSE_1_0.txt or copy at
10  * http://www.boost.org/LICENSE_1_0.txt)
11  **************************************************************************/
12 
13 #ifndef STXXL_COMMON_SEED_HEADER
14 #define STXXL_COMMON_SEED_HEADER
15 
16 #include <stxxl/bits/namespace.h>
17 
19 
20 //! set the global stxxl seed value
21 void set_seed(unsigned seed);
22 
23 //! get a seed value for prng initialization, subsequent calls return a
24 //! sequence of different values
25 unsigned get_next_seed();
26 
28 
29 #endif // !STXXL_COMMON_SEED_HEADER
unsigned get_next_seed()
get a seed value for prng initialization, subsequent calls return a sequence of different values ...
Definition: seed.cpp:73
#define STXXL_BEGIN_NAMESPACE
Definition: namespace.h:16
void set_seed(unsigned seed)
set the global stxxl seed value
Definition: seed.cpp:67
#define STXXL_END_NAMESPACE
Definition: namespace.h:17