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 b1b0c9d..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
@@ -76,7 +76,7 @@ public class RngStream {
         */
        public native void resetNextSubstream();
        /**
-        * If a = true the stream g will start generating antithetic variates, i.e., 1  U instead of U , until
+        * If a = true the stream g will start generating antithetic variates, i.e., 1 - U instead of U , until
         *  this method is called again with a = false.
         */
        public native void setAntithetic(boolean a);
@@ -113,6 +113,7 @@ public class RngStream {
         */
        public static native void nativeInit();
        static {
+               Msg.nativeInit();
                nativeInit();
        }
 }
\ No newline at end of file