diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2013-11-08 22:34:34 -0800 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2013-11-08 22:34:34 -0800 |
commit | 39d52a802e14966e200492fff56bf9f1fb3f629f (patch) | |
tree | 3444f50db0f412ca74b79eebbe80d530fc98e101 | |
parent | 41d636b53cff8c3c563114e045f8e9382d16fd79 (diff) |
analog: fixed Linux assumption, added ifdef to use rand() instead of lrand48() when using MSVC
-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() { |