mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Portability fixes.
This commit is contained in:
@@ -778,7 +778,7 @@ Search::prepare_asso_values ()
|
||||
|
||||
if (option[RANDOM] || option.get_jump () == 0)
|
||||
/* We will use rand(), so initialize the random number generator. */
|
||||
srand (reinterpret_cast<long>(time (0)));
|
||||
srand (static_cast<long>(time (0)));
|
||||
|
||||
_initial_asso_value = (option[RANDOM] ? -1 : option.get_initial_asso_value ());
|
||||
_jump = option.get_jump ();
|
||||
|
||||
Reference in New Issue
Block a user