mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 01:23:34 +08:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user