CVS: winex/dlls/advapi32 crypt.c,1.12,1.13

[email protected]
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/dlls/advapi32 crypt.c,1.12,1.13Update of /var/lib/cvsd/cvsroot/winex/dlls/advapi32
In directory agravaine:/tmp/cvs-serv20523/dlls/advapi32

Modified Files:
	crypt.c 
Log Message:

- use real random function on MacOS X


Index: crypt.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/advapi32/crypt.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- crypt.c	22 Aug 2006 15:39:04 -0000	1.12
+++ crypt.c	30 Mar 2007 20:42:12 -0000	1.13
@@ -1461,7 +1461,7 @@
  */
 BOOL WINAPI RtlGenRandom(BYTE * pbBuffer, DWORD dwLen)
 {
-#ifdef linux
+#if defined(linux) || defined(__APPLE__)
     int random_file;
 
     random_file = open("/dev/urandom", O_RDONLY);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.