From 28d2449a2207fa8c3f959c8037afe6e869300101 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 21 Sep 2013 18:41:21 +0000 Subject: small cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/utils/utils.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/modules/utils/utils.cpp') 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; } -- cgit v1.2.3