define Windows equivalent for srandom and random functions

Signed-off-by: rabbitstack <nedim.sabic@sysdig.com>
This commit is contained in:
rabbitstack
2023-03-16 13:55:48 +01:00
committed by poiana
parent 9c5d643a90
commit 03285f4140

View File

@@ -15,7 +15,14 @@ limitations under the License.
*/
#include <cstdlib>
#ifndef _WIN32
#include <unistd.h>
#else
#include <stdlib.h>
#include <io.h>
#define srandom srand
#define random rand
#endif
#include <string>
#include <fstream>
#include <functional>