STXXL  1.4.0
 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 
18 
20 
21 //! set the global stxxl seed value
22 void set_seed(unsigned seed);
23 
24 //! get a seed value for prng initialization, subsequent calls return a
25 //! sequence of different values
26 unsigned get_next_seed();
27 
29 
30 #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:74
#define STXXL_BEGIN_NAMESPACE
Definition: namespace.h:16
void set_seed(unsigned seed)
set the global stxxl seed value
Definition: seed.cpp:68
#define STXXL_END_NAMESPACE
Definition: namespace.h:17