J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | #include <jni.h> |
2 | #include <stdio.h> | ||||
3 | #include <stdlib.h> | ||||
4 | |||||
5 | #ifdef __cplusplus | ||||
6 | extern "C" { | ||||
7 | #endif | ||||
8 | |||||
9 | JNIEXPORT jint JNICALL Java_UseNativeLib_getRandom(JNIEnv *env, jobject obj) { | ||||
10 | return rand(); | ||||
11 | } | ||||
12 | |||||
13 | #ifdef __cplusplus | ||||
14 | } | ||||
15 | #endif |