mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
stdlib: generate uniformly distributed pseudo-random numbers
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -132,6 +132,19 @@ extern "C"
|
||||
|
||||
void srand(unsigned int seed);
|
||||
int rand(void);
|
||||
void lcong48(FAR unsigned short int param[7]);
|
||||
FAR unsigned short int *seed48(FAR unsigned short int seed16v[3]);
|
||||
void srand48(long int seedval);
|
||||
#ifdef CONFIG_HAVE_LONG_LONG
|
||||
long int jrand48(FAR unsigned short int xsubi[3]);
|
||||
long int lrand48(void);
|
||||
long int mrand48(void);
|
||||
long int nrand48(FAR unsigned short int xsubi[3]);
|
||||
# ifdef CONFIG_HAVE_DOUBLE
|
||||
double drand48(void);
|
||||
double erand48(FAR unsigned short int xsubi[3]);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define srandom(s) srand(s)
|
||||
long random(void);
|
||||
|
||||
Reference in New Issue
Block a user