diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llvfs/lldir_mac.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/llvfs/lldir_mac.cpp b/linden/indra/llvfs/lldir_mac.cpp index 683b961..7f1d2ce 100644 --- a/linden/indra/llvfs/lldir_mac.cpp +++ b/linden/indra/llvfs/lldir_mac.cpp | |||
@@ -287,7 +287,7 @@ BOOL LLDir_Mac::getNextFileInDir(const std::string &dirname, const std::string & | |||
287 | // get a random file in the directory | 287 | // get a random file in the directory |
288 | void LLDir_Mac::getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname) | 288 | void LLDir_Mac::getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname) |
289 | { | 289 | { |
290 | U32 which_file; | 290 | S32 which_file; |
291 | glob_t g; | 291 | glob_t g; |
292 | fname = ""; | 292 | fname = ""; |
293 | 293 | ||
@@ -300,7 +300,7 @@ void LLDir_Mac::getRandomFileInDir(const std::string &dirname, const std::string | |||
300 | if(g.gl_pathc > 0) | 300 | if(g.gl_pathc > 0) |
301 | { | 301 | { |
302 | 302 | ||
303 | which_file = gLindenLabRandomNumber.llrand() % g.gl_pathc; | 303 | which_file = ll_rand(g.gl_pathc); |
304 | 304 | ||
305 | // llinfos << "getRandomFileInDir: returning number " << which_file << ", path is " << g.gl_pathv[which_file] << llendl; | 305 | // llinfos << "getRandomFileInDir: returning number " << which_file << ", path is " << g.gl_pathv[which_file] << llendl; |
306 | // The API wants just the filename, not the full path. | 306 | // The API wants just the filename, not the full path. |