diff options
-rw-r--r-- | gr-analog/lib/fastnoise_source_X_impl.cc.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-analog/lib/fastnoise_source_X_impl.cc.t b/gr-analog/lib/fastnoise_source_X_impl.cc.t index c7831bb735..1ec108ba0d 100644 --- a/gr-analog/lib/fastnoise_source_X_impl.cc.t +++ b/gr-analog/lib/fastnoise_source_X_impl.cc.t @@ -145,8 +145,12 @@ namespace gr { } #ifndef FASTNOISE_RANDOM_SIGN +#ifdef _MSC_VER +#define FASTNOISE_RANDOM_SIGN ((rand()%2==0)?1:-1) +#else #define FASTNOISE_RANDOM_SIGN ((lrand48()%2==0)?1:-1) #endif +#endif @TYPE@ @IMPL_NAME@::sample_unbiased() { |