aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llvfs/lldir_win32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llvfs/lldir_win32.cpp')
-rw-r--r--linden/indra/llvfs/lldir_win32.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/llvfs/lldir_win32.cpp b/linden/indra/llvfs/lldir_win32.cpp
index 8dcaa5c..ad72752 100644
--- a/linden/indra/llvfs/lldir_win32.cpp
+++ b/linden/indra/llvfs/lldir_win32.cpp
@@ -285,8 +285,8 @@ BOOL LLDir_Win32::getNextFileInDir(const llutf16string &dirname, const std::stri
285// automatically wrap if we've hit the end 285// automatically wrap if we've hit the end
286void LLDir_Win32::getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname) 286void LLDir_Win32::getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname)
287{ 287{
288 U32 num_files; 288 S32 num_files;
289 U32 which_file; 289 S32 which_file;
290 HANDLE random_search_h; 290 HANDLE random_search_h;
291 291
292 fname = ""; 292 fname = "";
@@ -303,7 +303,7 @@ void LLDir_Win32::getRandomFileInDir(const std::string &dirname, const std::stri
303 return; 303 return;
304 } 304 }
305 305
306 which_file = gLindenLabRandomNumber.llrand() % num_files; 306 which_file = ll_rand(num_files);
307 307
308// llinfos << "Random select mp3 #" << which_file << llendl; 308// llinfos << "Random select mp3 #" << which_file << llendl;
309 309