xarray/osgRecipes — pull request #2 by aluaces (2012-02-27 10:31:06+00:00)
Title: The expression RAND_MAX+1 overflows on Linux as RAND_MAX is defined as 2...

...147483647.

Hi, when compiling, GCC emits several messages of the type "warning: integer overflow in expression [-Woverflow]". This happens because at least on this environment RAND_MAX+1 is overflowing. Since the source code is just for demonstration, removing the "+1" seems to be fine.