This is the mail archive of the
mailing list for the GCC project.
Re: RFA: libjava seems to miss some files for win32
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Kai Tietz <ktietz70 at googlemail dot com>
- Cc: Andrew Haley <aph at redhat dot com>, gcc at gcc dot gnu dot org, java at gcc dot gnu dot org, Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- Date: Sat, 18 Jul 2009 18:21:39 +0100
- Subject: Re: RFA: libjava seems to miss some files for win32
- References: <email@example.com> <4A61D6D6.firstname.lastname@example.org> <email@example.com>
Kai Tietz wrote:
> * gnu/java/security/jce/prng/natVMSecureRandomWin32.cc: Implementation
> for native win32.
> Tested for x86 and x64 mingw targets. Ok for apply?
+ for (a = 0; a < length; a++, count++)
+ *bytes++= (jbyte) rand ();
Surely not, the standard C library rand() function is completely unsuitable
for security purposes. It should use the win32 crypto api to get real
high-quality random data I think.