summaryrefslogtreecommitdiff
path: root/src/modules/utils/utils.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-09-21 18:41:21 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-09-21 18:41:21 +0000
commit28d2449a2207fa8c3f959c8037afe6e869300101 (patch)
tree33ff65f8113a99f94fc330d0ebd817db0229dedd /src/modules/utils/utils.cpp
parent96928d1553edc33b05a2dd00d5251fd00e258467 (diff)
small cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/utils/utils.cpp')
-rw-r--r--src/modules/utils/utils.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/modules/utils/utils.cpp b/src/modules/utils/utils.cpp
index ddf2038da0..62322a9ec6 100644
--- a/src/modules/utils/utils.cpp
+++ b/src/modules/utils/utils.cpp
@@ -448,15 +448,6 @@ static INT_PTR GenerateRandom(WPARAM wParam, LPARAM lParam)
pfnRtlGenRandom = NULL;
}
}
- if (pfnRtlGenRandom == NULL)
- {
- srand(GetTickCount());
- unsigned short* buf = (unsigned short*)lParam;
- for (; (long)(wParam-=2) >= 0;)
- *(buf++) = (unsigned short)rand();
- if (lParam < 0)
- *(char*)buf = (char)(rand() & 0xFF);
- }
return 0;
}