2017-09-12 19:03:39 +02:00

16 lines
230 B
C

#include <jni.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
JNIEXPORT jint JNICALL Java_UseNativeLib_getRandom(JNIEnv *env, jobject obj) {
return rand();
}
#ifdef __cplusplus
}
#endif