made random seed off clock. other minor tweaks to polynomial problem.

This commit is contained in:
swaits committed 2007-04-28 02:03:00 +00:00
1 parent 3f5fdb3bbf
commit c194ae5fc5
3 files changed
+10 -3

No files matched your search

+5
View File
@@ -1,11 +1,16 @@
#ifndef __derand_inl__
#define __derand_inl__
#include <ctime>
#if !(defined(__derand_h__))
# error "derand.inl should only be included by derand.h"
#endif
inline DE::Random::Random()
{
Seed(static_cast<u32>(clock()));
}
inline void DE::Random::Seed(u32 seed)
{