OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [java/] [security/] [jce/] [prng/] [natVMSecureRandomWin32.cc] - Blame information for rev 756

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 756 jeremybenn
// natVMSecureRandomWin32.cc - Native part of VMSecureRandom class for Win32.
2
 
3
/* Copyright (C) 2009, 2010 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 ::java::lang::UnsupportedOperationException (
30
      JvNewStringLatin1 ("natGenerateSeed is not available for Win32 target."));
31
  return 0;
32
}
33
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.