-
- Downloads
Use random() instead of rand() to increase portability
Quoting glibc rand(3): The versions of rand() and srand() in the Linux C Library use the same random number generator as random(3) and srandom(3), so the lower-order bits should be as random as the higher-order bits. However, on older rand() implementations, and on current implementations on different systems, the lower-order bits are much less random than the higher-order bits. Do not use this function in applications intended to be portable when good randomness is needed. (Use random(3) instead.)
Showing
- src/collage.c 2 additions, 2 deletionssrc/collage.c
- src/gib_list.c 1 addition, 1 deletionsrc/gib_list.c
- src/keyevents.c 1 addition, 1 deletionsrc/keyevents.c
- src/main.c 1 addition, 1 deletionsrc/main.c
- src/slideshow.c 1 addition, 1 deletionsrc/slideshow.c
- src/wallpaper.c 1 addition, 1 deletionsrc/wallpaper.c
Loading
Please register or sign in to comment