diff -ruN lua52.orig/files/patch-src__lstate.c lua52/files/patch-src__lstate.c --- lua52.orig/files/patch-src__lstate.c 1970-01-01 03:00:00.000000000 +0300 +++ lua52/files/patch-src__lstate.c 2015-04-16 14:23:15.000000000 +0300 @@ -0,0 +1,15 @@ +--- src/lstate.c.orig 2014-11-02 21:33:33.000000000 +0200 ++++ src/lstate.c 2015-04-16 14:22:07.000000000 +0300 +@@ -43,8 +43,12 @@ + /* + ** a macro to help the creation of a unique random seed when a state is + ** created; the seed is used to randomize hashes. + */ ++#define __BSD_VISIBLE 1 ++#include ++#define luai_makeseed() cast(unsigned int, arc4random()) ++ + #if !defined(luai_makeseed) + #include + #define luai_makeseed() cast(unsigned int, time(NULL)) + #endif diff -ruN lua53.orig/files/patch-src__lstate.c lua53/files/patch-src__lstate.c --- lua53.orig/files/patch-src__lstate.c 1970-01-01 03:00:00.000000000 +0300 +++ lua53/files/patch-src__lstate.c 2015-04-16 14:22:50.000000000 +0300 @@ -0,0 +1,15 @@ +--- src/lstate.c.orig 2014-11-02 21:33:33.000000000 +0200 ++++ src/lstate.c 2015-04-16 14:22:07.000000000 +0300 +@@ -43,8 +43,12 @@ + /* + ** a macro to help the creation of a unique random seed when a state is + ** created; the seed is used to randomize hashes. + */ ++#define __BSD_VISIBLE 1 ++#include ++#define luai_makeseed() cast(unsigned int, arc4random()) ++ + #if !defined(luai_makeseed) + #include + #define luai_makeseed() cast(unsigned int, time(NULL)) + #endif