From f762e6adb50d0a7eb72825b322e7d4192ae29ef3 Mon Sep 17 00:00:00 2001 From: Alexey <AlexeyAB@users.noreply.github.com> Date: Sat, 03 Feb 2018 12:38:31 +0000 Subject: [PATCH] Merge pull request #357 from rajendraarora16/new-changes-darknet --- src/utils.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/utils.h b/src/utils.h index bbc6765..9949d6d 100644 --- a/src/utils.h +++ b/src/utils.h @@ -4,6 +4,10 @@ #include <time.h> #include "list.h" +#if defined(_MSC_VER) && _MSC_VER < 1900 + #define snprintf(buf,len, format,...) _snprintf_s(buf, len,len, format, __VA_ARGS__) +#endif + #define SECRET_NUM -1234 #define TWO_PI 6.2831853071795864769252866 @@ -59,6 +63,9 @@ char *find_char_arg(int argc, char **argv, char *arg, char *def); int sample_array(float *a, int n); void print_statistics(float *a, int n); +unsigned int random_gen(); +float random_float(); +float rand_uniform_strong(float min, float max); #endif -- Gitblit v1.10.0