OSDN Git Service

66eaf82215f0a0fcfe73a83865b9f67215e7a032
[pf3gnuchains/gcc-fork.git] / libjava / gnu / java / security / jce / prng / natVMSecureRandomWin32.cc
1 // natVMSecureRandomWin32.cc - Native part of VMSecureRandom class for Win32.
2
3 /* Copyright (C) 2009 Free Software Foundation
4
5    This file is part of libgcj.
6
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
9 details.  */
10
11 #include <config.h>
12
13 #include <sys/types.h>
14 #include <sys/stat.h>
15 #include <fcntl.h>
16 #include <unistd.h>
17 #include <string.h>
18 #include <errno.h>
19
20 #include <gcj/cni.h>
21 #include <java/lang/InternalError.h>
22 #include <java/lang/UnsupportedOperationException.h>
23 #include <gnu/java/security/jce/prng/VMSecureRandom.h>
24
25 jint
26 gnu::java::security::jce::prng::VMSecureRandom::natGenerateSeed(jbyteArray byte_array, jint offset, jint length)
27 {
28   if (length != 0)
29     throw new UnsupportedOperationException (
30       JvNewStringLatin1 ("natGenerateSeed is not available for Win32 target."));
31   return 0;
32 }
33