From 1298f83aa49948962b57dc302cc868130b60c0b5 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 3 Oct 2019 19:25:57 +0200 Subject: Windows: Add function RandinitWithCheck to detect if random generator was already initialized before our call or not --- src/Common/Random.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Common/Random.h') diff --git a/src/Common/Random.h b/src/Common/Random.h index 46fe59a8..88dd041b 100644 --- a/src/Common/Random.h +++ b/src/Common/Random.h @@ -35,6 +35,7 @@ extern "C" { void RandAddInt ( unsigned __int32 x ); int Randinit ( void ); +int RandinitWithCheck ( int* pAlreadyInitialized); void RandStop (BOOL freePool); BOOL IsRandomNumberGeneratorStarted (); void RandSetHashFunction ( int hash_algo_id ); -- cgit v1.2.3