Conversation
Changed "random" to "rand" -- The random function was not available on MSVC's "stdlib.h" for me, and after doing some more research, I realized that "rand()" instead of "random()" might be better for more compatibility across various operating systems.
|
hm , here https://stackoverflow.com/questions/76663458/do-rand-and-random-function-the-same-in-glibc they recommend using Should we try a system specific macro instead ? cdef extern from "stdlib.h":
"""
#if defined(_WIN32) || defined(MS_WINDOWS) || defined(_MSC_VER)
#define _my_random() rand_s()
#else
#define _my_random() random()
#endif
"""
long c_libc_random "_my_random"()
double c_libc_drandom "drand48"() |
|
another suggestion/proposal - rewrite That we started discussing simplifying cython dependencies in favor of numba here #487 |
Changed "random" to "rand" -- The random function was not available on MSVC's "stdlib.h" for me, and after doing some more research, I realized that "rand()" instead of "random()" might be better for more compatibility across various operating systems.