[glib] grand: Fix URLs for info on the Mersenne Twister
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] grand: Fix URLs for info on the Mersenne Twister
- Date: Fri, 17 Dec 2010 16:14:12 +0000 (UTC)
commit f0354ff0590f0350ebdb1ee8eb84e7b6cdd1e850
Author: Javier Jardón <jjardon gnome org>
Date: Fri Dec 17 16:12:16 2010 +0000
grand: Fix URLs for info on the Mersenne Twister
Reported by Allin Cottrell here:
http://mail.gnome.org/archives/gtk-devel-list/2010-December/msg00134.html
glib/grand.c | 4 ++--
glib/grand.h | 2 +-
glib/tests/rand.c | 3 ++-
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/glib/grand.c b/glib/grand.c
index a70ce7b..e86afa7 100644
--- a/glib/grand.c
+++ b/glib/grand.c
@@ -68,8 +68,8 @@
* pseudo-random number generator (PRNG). It uses the Mersenne Twister
* PRNG, which was originally developed by Makoto Matsumoto and Takuji
* Nishimura. Further information can be found at
- * <ulink url="http://www.math.keio.ac.jp/~matumoto/emt.html">
- * www.math.keio.ac.jp/~matumoto/emt.html</ulink>.
+ * <ulink url="http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html">
+ * http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html</ulink>.
*
* If you just need a random number, you simply call the
* <function>g_random_*</function> functions, which will create a
diff --git a/glib/grand.h b/glib/grand.h
index 07907df..0397992 100644
--- a/glib/grand.h
+++ b/glib/grand.h
@@ -38,7 +38,7 @@ G_BEGIN_DECLS
typedef struct _GRand GRand;
/* GRand - a good and fast random number generator: Mersenne Twister
- * see http://www.math.keio.ac.jp/~matumoto/emt.html for more info.
+ * see http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html for more info.
* The range functions return a value in the intervall [begin, end).
* int -> [0..2^32-1]
* int_range -> [begin..end-1]
diff --git a/glib/tests/rand.c b/glib/tests/rand.c
index 62b5f75..f1ff08d 100644
--- a/glib/tests/rand.c
+++ b/glib/tests/rand.c
@@ -22,7 +22,8 @@
#include "glib.h"
/* Outputs tested against the reference implementation mt19937ar.c from
- http://www.math.keio.ac.jp/~matumoto/MT2002/emt19937ar.html */
+ * http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html
+ */
/* Tests for a simple seed, first number is the seed */
const guint32 first_numbers[] =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]