https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236678

            Bug ID: 236678
           Summary: arc4random man page example could be better
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Manual Pages
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

https://www.freebsd.org/cgi/man.cgi?query=arc4random
The example:
#define foo4random()    (arc4random() % ((unsigned)RAND_MAX + 1))
would be better as:
#define foo4random()    (arc4random_uniform((unsigned)RAND_MAX))

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to