[CryptManager] Add GenerateRandomUUID() Lua binding.

This commit is contained in:
AJ Kelly
2011-08-27 15:26:17 -05:00
parent 183888f4f1
commit 1a1b6af828
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -479,6 +479,13 @@ public:
lua_pushstring( L, sha1fout );
return 1;
}
static int GenerateRandomUUID( T* p, lua_State *L )
{
RString uuidOut;
uuidOut = p->GenerateRandomUUID();
lua_pushstring( L, uuidOut );
return 1;
}
LunaCryptManager()
{
@@ -486,6 +493,7 @@ public:
ADD_METHOD( MD5File );
ADD_METHOD( SHA1String );
ADD_METHOD( SHA1File );
ADD_METHOD( GenerateRandomUUID );
}
};