Stxxl  1.4.0
include/stxxl/bits/common/seed.h
Go to the documentation of this file.
00001 /***************************************************************************
00002  *  include/stxxl/bits/common/seed.h
00003  *
00004  *  Part of the STXXL. See http://stxxl.sourceforge.net
00005  *
00006  *  Copyright (C) 2007 Andreas Beckmann <beckmann@mpi-inf.mpg.de>
00007  *
00008  *  Distributed under the Boost Software License, Version 1.0.
00009  *  (See accompanying file LICENSE_1_0.txt or copy at
00010  *  http://www.boost.org/LICENSE_1_0.txt)
00011  **************************************************************************/
00012 
00013 #ifndef STXXL_SEED_HEADER
00014 #define STXXL_SEED_HEADER
00015 
00016 #include <stxxl/bits/namespace.h>
00017 
00018 
00019 __STXXL_BEGIN_NAMESPACE
00020 
00021 //! \brief set the global stxxl seed value
00022 void set_seed(unsigned seed);
00023 
00024 //! \brief get a seed value for prng initialization,
00025 //!        subsequent calls return a sequence of different values
00026 unsigned get_next_seed();
00027 
00028 __STXXL_END_NAMESPACE
00029 
00030 #endif // !STXXL_SEED_HEADER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines