summaryrefslogtreecommitdiffstats
path: root/src/libs/7zip/win/CPP/Common/Random.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/7zip/win/CPP/Common/Random.cpp')
-rw-r--r--src/libs/7zip/win/CPP/Common/Random.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/libs/7zip/win/CPP/Common/Random.cpp b/src/libs/7zip/win/CPP/Common/Random.cpp
deleted file mode 100644
index 4bd3fcf93..000000000
--- a/src/libs/7zip/win/CPP/Common/Random.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-// Common/Random.cpp
-
-#include "StdAfx.h"
-
-#include <stdlib.h>
-
-#ifndef _WIN32
-#include <time.h>
-#endif
-
-#include "Random.h"
-
-void CRandom::Init(unsigned int seed) { srand(seed); }
-
-void CRandom::Init()
-{
- Init((unsigned int)
- #ifdef _WIN32
- GetTickCount()
- #else
- time(NULL)
- #endif
- );
-}
-
-int CRandom::Generate() const { return rand(); }