Add one to internal result of random number generator to avoid the value zero, from Freddie Chopin

git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5404 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-12-01 16:32:03 +00:00
parent 7f7356cdc9
commit b0b339c242
3 changed files with 86 additions and 91 deletions
+2
View File
@@ -3722,3 +3722,5 @@
* include/nuttx/input/keypad.h, arch/arm/src/calypso/calypso_keypad.c, and
configs/compal_e99/nsh_highram: First cut at a standard keypad interface
definition. Contributed by Denis Carikli.
* libc/stdlib/lib_rand.c: Always add one to result congruential generators
to avoid the value zero. Suggested by Freddie Chopin.