CVSROOT:        /cvs
Module name:    src
Changes by:     mes...@cvs.openbsd.org  2016/03/08 11:43:47

Modified files:
        games/trek     : ranf.c 

Log message:
- ranf() and franf() are prototyped on trek.h but ranf.c doesn't include it so
do it
- Replace random() >> 5 by only random(): this was discussed a few months ago
and naddy@ said at the time "Those games were originally written with the
rand(3) function. The lower bits returned by rand(3) suffered from notoriously
poor randomness, so this idiom developed where people would use the higher,
more random bits."

OK tb@ after his remarks

Reply via email to