Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ensures that the native libraries are always loaded before trying to access them
[simgrid.git] / org / simgrid / msg / RngStream.java
index 5f4a8bf..58b9c9e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * JNI interface to C RngStream code
  * 
- * Copyright 2006,2007,2010,2012 The SimGrid Team.           
+ * Copyright 2006-2012 The SimGrid Team.           
  * All right reserved. 
  *
  * This program is free software; you can redistribute 
@@ -16,7 +16,7 @@ public class RngStream {
        /**
         * Represents the bind between the RngStream java object and the C object.
         */
-       public long bind;
+       private long bind;
        /**
         * Creates and returns a new stream without identifier. 
         * This procedure reserves space to keep the information relative to
@@ -113,6 +113,7 @@ public class RngStream {
         */
        public static native void nativeInit();
        static {
+               Msg.nativeInit();
                nativeInit();
        }
 }
\ No newline at end of file