The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
seed_rng.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2014 - 2016 by Chris Beck <
[email protected]
>
3
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY.
11
12
See the COPYING file for more details.
13
*/
14
15
/*
16
This file provides a name space to store a source for seeds for
17
prgs. It should be boost::random_device on platforms that provide
18
this with our version of boost random, and otherwise should be the
19
system time I suppose.
20
21
The seed_rng::next_seed function provided probably shouldn't be used
22
anywhere except for default constructors of prg classes, or similar.
23
*/
24
25
#include <boost/cstdint.hpp>
26
#include <string>
27
28
using
boost::uint32_t
;
29
30
#ifndef SEED_RNG_HPP_INCLUDED
31
#define SEED_RNG_HPP_INCLUDED
32
33
namespace
seed_rng
{
34
35
uint32_t
next_seed
();
36
std::string
next_seed_str
();
37
38
}
// ends seed_rng namespace
39
40
#endif
uint32_t
boost::uint32_t uint32_t
Definition:
xbrz.hpp:45
seed_rng::next_seed_str
std::string next_seed_str()
Definition:
seed_rng.cpp:61
seed_rng
Definition:
seed_rng.cpp:50
seed_rng::next_seed
uint32_t next_seed()
Definition:
seed_rng.cpp:52
string
GLsizei const GLcharARB ** string
Definition:
glew.h:4503
Generated by
1.8.8