From 478f365a79315b5bc286e627f914cde1b94c72a3 Mon Sep 17 00:00:00 2001 From: David Mayerich Date: Mon, 19 Jun 2017 11:34:02 -0500 Subject: [PATCH] added pptx file format --- stim/biomodels/nwt_format.pptx | Bin 0 -> 55488 bytes stim/math/random.h | 18 ++++++++---------- 2 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 stim/biomodels/nwt_format.pptx diff --git a/stim/biomodels/nwt_format.pptx b/stim/biomodels/nwt_format.pptx new file mode 100644 index 0000000..4bc8308 Binary files /dev/null and b/stim/biomodels/nwt_format.pptx differ diff --git a/stim/math/random.h b/stim/math/random.h index b79c31d..6643936 100644 --- a/stim/math/random.h +++ b/stim/math/random.h @@ -12,25 +12,23 @@ namespace stim{ template class Random{ protected: - void init(int seed = 0) - { - if(seed <= 0) - srand(time(NULL)); - else if(seed > 0) - srand(time(seed)); - else - std::cout << "Error: Unknown value: in STIM::RANDOM" << std::endl; + void init() { + srand(time(NULL)); + } + + void init(unsigned int seed){ + srand(seed); } public: /// Default Constructor Random(){ - init(-1); + init(); } /// Constructor from a seed. /// A positive seed sets, 0 or negative yeilds the - Random(int seed){ + Random(unsigned int seed){ init(seed); } -- libgit2 0.21.4