From da84e061650ccb332ce7872e244c290dbbe8c45f Mon Sep 17 00:00:00 2001 From: vishalt12345 <104476960+vishalt12345@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:31:22 -0600 Subject: [PATCH] Update _numutils.pyx 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. --- cooltools/lib/_numutils.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cooltools/lib/_numutils.pyx b/cooltools/lib/_numutils.pyx index fa5ba4e6..77ccd2c2 100644 --- a/cooltools/lib/_numutils.pyx +++ b/cooltools/lib/_numutils.pyx @@ -13,7 +13,7 @@ ctypedef unsigned short ushort ctypedef unsigned char uchar cdef extern from "stdlib.h": - long c_libc_random "random"() + long c_libc_random "rand"() double c_libc_drandom "drand48"()