diff options
author | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
commit | 9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch) | |
tree | 2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/llvfs/lldir_linux.cpp | |
parent | Second Life viewer sources 1.13.2.12 (diff) | |
download | meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.zip meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.gz meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.bz2 meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.xz |
Second Life viewer sources 1.13.2.15
Diffstat (limited to 'linden/indra/llvfs/lldir_linux.cpp')
-rw-r--r-- | linden/indra/llvfs/lldir_linux.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llvfs/lldir_linux.cpp b/linden/indra/llvfs/lldir_linux.cpp index 8557901..780fbdb 100644 --- a/linden/indra/llvfs/lldir_linux.cpp +++ b/linden/indra/llvfs/lldir_linux.cpp | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | #include "lldir_linux.h" | 30 | #include "lldir_linux.h" |
31 | #include "llerror.h" | 31 | #include "llerror.h" |
32 | #include "llrand.h" // for gLindenLabRandomNumber | 32 | #include "llrand.h" |
33 | #include <sys/types.h> | 33 | #include <sys/types.h> |
34 | #include <sys/stat.h> | 34 | #include <sys/stat.h> |
35 | #include <unistd.h> | 35 | #include <unistd.h> |
@@ -286,8 +286,8 @@ BOOL LLDir_Linux::getNextFileInDir(const std::string &dirname, const std::string | |||
286 | // automatically wrap if we've hit the end | 286 | // automatically wrap if we've hit the end |
287 | void LLDir_Linux::getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname) | 287 | void LLDir_Linux::getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname) |
288 | { | 288 | { |
289 | U32 num_files; | 289 | S32 num_files; |
290 | U32 which_file; | 290 | S32 which_file; |
291 | DIR *dirp; | 291 | DIR *dirp; |
292 | dirent *entryp = NULL; | 292 | dirent *entryp = NULL; |
293 | 293 | ||
@@ -299,7 +299,7 @@ void LLDir_Linux::getRandomFileInDir(const std::string &dirname, const std::stri | |||
299 | return; | 299 | return; |
300 | } | 300 | } |
301 | 301 | ||
302 | which_file = gLindenLabRandomNumber.llrand() % num_files; | 302 | which_file = ll_rand(num_files); |
303 | 303 | ||
304 | // llinfos << "Random select file #" << which_file << llendl; | 304 | // llinfos << "Random select file #" << which_file << llendl; |
305 | 305 | ||