![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/self/root/opt/rh/gcc-toolset-11/root/usr/share/systemtap/tapset/ |
/** * sfunction randint - Return a random number between [0,n) * @n: Number past upper limit of range, not larger than 2**20. */ function randint:long(n:long) %{ /* unprivileged */ #define RANDMAX (1024*1024) if ((unsigned long)STAP_ARG_n > RANDMAX) CONTEXT->last_error = "range too wide"; else { STAP_RETVALUE = (uint64_t) _stp_random_u((unsigned long) STAP_ARG_n); } #undef RANDMAX %}