mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 13:53:41 +00:00
[CRT]
- Stubplement _controlfp_s, rand_s - Implement _invalid_parameter, _get_invalid_parameter_handler, _set_invalid_parameter_handler - Implement memmove_s, strncpy_s - sync heap.c with wine Patch by Samuel Serapion svn path=/trunk/; revision=47822
This commit is contained in:
parent
dc9cecc4cd
commit
cfb8a35516
6 changed files with 400 additions and 69 deletions
|
@ -1,6 +1,6 @@
|
|||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <precomp.h>
|
||||
|
||||
//#include <Ntsecapi.h>
|
||||
#include <internal/tls.h>
|
||||
|
||||
/*
|
||||
|
@ -25,3 +25,18 @@ srand(unsigned int seed)
|
|||
|
||||
ThreadData->tnext = (ULONGLONG)seed;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* rand_s (MSVCRT.@)
|
||||
*/
|
||||
int CDECL rand_s(unsigned int *pval)
|
||||
{
|
||||
#if 0
|
||||
if (!pval || !RtlGenRandom(pval, sizeof(*pval)))
|
||||
{
|
||||
*_errno() = EINVAL;
|
||||
return EINVAL;
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue