#include <precomp.h>
#include <ntsecapi.h>
#include <internal/tls.h>
Go to the source code of this file.
◆ rand()
Definition at line 10 of file rand.c.
11{
13
14
15
16 data->random_seed =
data->random_seed * 214013 + 2531011;
18}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
thread_data_t * msvcrt_get_thread_data(void)
◆ rand_s()
Definition at line 33 of file rand.c.
34{
37
38 if (!pval)
39 {
43 }
44
45 *pval = 0;
47 if (!hadvapi32)
48 {
52 }
53
54 pSystemFunction036 = (
void*)
GetProcAddress(hadvapi32,
"SystemFunction036");
55 if (!pSystemFunction036)
56 {
61 }
62
63 if (!pSystemFunction036(pval, sizeof(*pval)))
64 {
69 }
70
72 return 0;
73}
#define _CRT_WIDE(_String)
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
void _invalid_parameter(const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t pReserved)
_CRTIMP int *__cdecl _errno(void)
◆ srand()
Definition at line 24 of file rand.c.
25{
27 data->random_seed = seed;
28}