Nginx (openresty) generating random numbers

Based on your error log entry, it appears you have a simple typo.

            marth.randomseed(1);

This should read:

            math.randomseed(1);