made random seed off clock. other minor tweaks to polynomial problem.
This commit is contained in:
1 parent
3f5fdb3bbf
commit
c194ae5fc5
3 files changed
+10
-3
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user