/dev/random: Add configuration option to use the congruential PRNG.

This commit is contained in:
Gregory Nutt
2016-07-17 07:56:25 -06:00
parent ffd3a31649
commit 07e20479ad
6 changed files with 193 additions and 42 deletions
+5 -1
View File
@@ -2,7 +2,7 @@
* include/nuttx/lib.h
* Non-standard, internal APIs available in lib/.
*
* Copyright (C) 2007-2009, 2012-2014 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2009, 2012-2014, 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -77,6 +77,10 @@ void lib_stream_initialize(FAR struct task_group_s *group);
void lib_stream_release(FAR struct task_group_s *group);
#endif
/* Functions defined in lib_srand.c *****************************************/
unsigned long nrand(unsigned long limit);
#undef EXTERN
#ifdef __cplusplus
}