fix #3766
safe workaround SIGFPE in Lua
speedup GrassRendering
* don't use standard rand() (it's coded for semi-random values and not for speed)
* don't use streflop when not needed
workaround another unfixable SIGFPE