r41402 - in /branches/upstream/libmath-random-mt-perl/current: Changes LICENSE MANIFEST META.yml MT.pm MT.xs README _mt.c mt.h
carnil-guest at users.alioth.debian.org
carnil-guest at users.alioth.debian.org
Thu Aug 6 11:20:50 UTC 2009
Author: carnil-guest
Date: Thu Aug 6 11:20:44 2009
New Revision: 41402
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=41402
Log:
[svn-upgrade] Integrating new upstream version, libmath-random-mt-perl (1.08)
Added:
branches/upstream/libmath-random-mt-perl/current/LICENSE
Modified:
branches/upstream/libmath-random-mt-perl/current/Changes
branches/upstream/libmath-random-mt-perl/current/MANIFEST
branches/upstream/libmath-random-mt-perl/current/META.yml
branches/upstream/libmath-random-mt-perl/current/MT.pm
branches/upstream/libmath-random-mt-perl/current/MT.xs
branches/upstream/libmath-random-mt-perl/current/README
branches/upstream/libmath-random-mt-perl/current/_mt.c
branches/upstream/libmath-random-mt-perl/current/mt.h
Modified: branches/upstream/libmath-random-mt-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmath-random-mt-perl/current/Changes?rev=41402&op=diff
==============================================================================
--- branches/upstream/libmath-random-mt-perl/current/Changes (original)
+++ branches/upstream/libmath-random-mt-perl/current/Changes Thu Aug 6 11:20:44 2009
@@ -1,3 +1,10 @@
+1.08 2009-08-06 Abhijit Menon-Sen <ams at toroid.org>
+
+ * BSD license
+
+ * Compile fix for GNU/kFreeBSD from Cyril Brulebois (via Debian)
+
+
1.07 2007-01-12 Abhijit Menon-Sen <ams at toroid.org>
* Add the Changes file to the MANIFEST, in addition to editing it
@@ -20,12 +27,16 @@
* Incorporated some compile fixes from Gordon Lack.
+ (1.03 had only some documentation changes.)
+
1.02 2004-05-07 Abhijit Menon-Sen <ams at wiw.org>
* Added support for seeding the random number generator with an
array of numbers, as suggested by Philip M. Feldman.
+ (1.01 was not released.)
+
1.00 2002-02-09 Abhijit Menon-Sen <ams at wiw.org>
Added: branches/upstream/libmath-random-mt-perl/current/LICENSE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmath-random-mt-perl/current/LICENSE?rev=41402&op=file
==============================================================================
--- branches/upstream/libmath-random-mt-perl/current/LICENSE (added)
+++ branches/upstream/libmath-random-mt-perl/current/LICENSE Thu Aug 6 11:20:44 2009
@@ -1,0 +1,32 @@
+Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
+Copyright 2001 Abhijit Menon-Sen <ams at toroid.org>,
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ 3. The names of its contributors may not be used to endorse or
+ promote products derived from this software without specific
+ prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
Modified: branches/upstream/libmath-random-mt-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmath-random-mt-perl/current/MANIFEST?rev=41402&op=diff
==============================================================================
--- branches/upstream/libmath-random-mt-perl/current/MANIFEST (original)
+++ branches/upstream/libmath-random-mt-perl/current/MANIFEST Thu Aug 6 11:20:44 2009
@@ -1,4 +1,5 @@
MANIFEST
+LICENSE
MT.pm
MT.xs
Makefile.PL
Modified: branches/upstream/libmath-random-mt-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmath-random-mt-perl/current/META.yml?rev=41402&op=diff
==============================================================================
--- branches/upstream/libmath-random-mt-perl/current/META.yml (original)
+++ branches/upstream/libmath-random-mt-perl/current/META.yml Thu Aug 6 11:20:44 2009
@@ -1,10 +1,12 @@
-# http://module-build.sourceforge.net/META-spec.html
-#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
-name: Math-Random-MT
-version: 1.07
-version_from: MT.pm
-installdirs: site
-requires:
-
-distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.17
+--- #YAML:1.0
+name: Math-Random-MT
+version: 1.08
+abstract: The Mersenne Twister PRNG
+license: ~
+author: ~
+generated_by: ExtUtils::MakeMaker version 6.44
+distribution_type: module
+requires:
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.3.html
+ version: 1.3
Modified: branches/upstream/libmath-random-mt-perl/current/MT.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmath-random-mt-perl/current/MT.pm?rev=41402&op=diff
==============================================================================
--- branches/upstream/libmath-random-mt-perl/current/MT.pm (original)
+++ branches/upstream/libmath-random-mt-perl/current/MT.pm Thu Aug 6 11:20:44 2009
@@ -1,6 +1,3 @@
-# Math::Random::MT
-# Copyright 2001 Abhijit Menon-Sen <ams at wiw.org>
-
package Math::Random::MT;
use strict;
@@ -10,7 +7,7 @@
my $gen = undef;
@ISA = qw( DynaLoader );
-($VERSION) = q$Revision: 1.07 $ =~ /([\d.]+)/;
+$VERSION = '1.08';
bootstrap Math::Random::MT $VERSION;
@@ -115,7 +112,7 @@
=head1 SEE ALSO
-<URL:http://www.math.keio.ac.jp/~matumoto/emt.html>
+<URL:http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html>
Math::TrulyRandom
@@ -135,9 +132,12 @@
=head1 AUTHOR
-Abhijit Menon-Sen <ams at wiw.org>
+Abhijit Menon-Sen <ams at toroid.org>
Copyright 2001 Abhijit Menon-Sen. All rights reserved.
-This software is distributed under the terms of the Artistic License
-<URL:http://ams.wiw.org/code/artistic.txt>.
+Based on the C implementation of MT19937
+Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura
+
+This software is distributed under a (three-clause) BSD-style license.
+See the LICENSE file in the distribution for details.
Modified: branches/upstream/libmath-random-mt-perl/current/MT.xs
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmath-random-mt-perl/current/MT.xs?rev=41402&op=diff
==============================================================================
--- branches/upstream/libmath-random-mt-perl/current/MT.xs (original)
+++ branches/upstream/libmath-random-mt-perl/current/MT.xs Thu Aug 6 11:20:44 2009
@@ -1,8 +1,3 @@
-/*
- * Math::Random::MT
- * Copyright 2001 Abhijit Menon-Sen <ams at wiw.org>
- */
-
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
Modified: branches/upstream/libmath-random-mt-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmath-random-mt-perl/current/README?rev=41402&op=diff
==============================================================================
--- branches/upstream/libmath-random-mt-perl/current/README (original)
+++ branches/upstream/libmath-random-mt-perl/current/README Thu Aug 6 11:20:44 2009
@@ -2,52 +2,48 @@
Math::Random::MT - The Mersenne Twister PRNG
SYNOPSIS
- use Math::Random::MT;
+ use Math::Random::MT;
- $gen = Math::Random::MT->new($seed); # OR...
- $gen = Math::Random::MT->new(@seed);
+ $gen = Math::Random::MT->new($seed); # OR...
+ $gen = Math::Random::MT->new(@seed);
- print $gen->rand(3);
+ print $gen->rand(3);
- OR
+ OR
- use Math::Random::MT qw(srand rand);
+ use Math::Random::MT qw(srand rand);
- # now srand and rand behave as usual.
+ # now srand and rand behave as usual.
DESCRIPTION
- The Mersenne Twister is a pseudorandom number generator
- developed by Makoto Matsumoto and Takuji Nishimura. It is
- described in their paper at
+ The Mersenne Twister is a pseudorandom number generator developed by
+ Makoto Matsumoto and Takuji Nishimura. It is described in their paper at
<URL:http://www.math.keio.ac.jp/~nisimura/random/doc/mt.ps>.
- This module implements two interfaces, as described in the
- synopsis above. It defines the following functions.
+ This module implements two interfaces, as described in the synopsis
+ above. It defines the following functions.
Functions
-
new($seed)
- Creates a new generator seeded with an unsigned 32-bit
- integer.
+ Creates a new generator seeded with an unsigned 32-bit integer.
new(@seed)
- Creates a new generator seeded with an array of (up to 624)
- unsigned 32-bit integers.
+ Creates a new generator seeded with an array of (up to 624) unsigned
+ 32-bit integers.
rand($num)
- Behaves exactly like Perl's builtin rand(), returning a
- number uniformly distributed in [0, $num) ($num defaults to
- 1).
+ Behaves exactly like Perl's builtin rand(), returning a number
+ uniformly distributed in [0, $num) ($num defaults to 1).
srand($seed)
- This is an alternative interface to the module's
- functionality. It behaves just like Perl's builtin srand().
- If you use this interface, it is strongly recommended that
- you call *srand()* explicitly, rather than relying on
- *rand()* to call it the first time it is used.
+ This is an alternative interface to the module's functionality. It
+ behaves just like Perl's builtin srand(). If you use this interface,
+ it is strongly recommended that you call *srand()* explicitly,
+ rather than relying on *rand()* to call it the first time it is
+ used.
SEE ALSO
- <URL:http://www.math.keio.ac.jp/~matumoto/emt.html>
+ <URL:http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html>
Math::TrulyRandom
@@ -59,10 +55,12 @@
For several useful patches.
AUTHOR
- Abhijit Menon-Sen <ams at wiw.org>
+ Abhijit Menon-Sen <ams at toroid.org>
Copyright 2001 Abhijit Menon-Sen. All rights reserved.
- This software is distributed under the terms of the Artistic
- License <URL:http://ams.wiw.org/code/artistic.txt>.
+ Based on the C implementation of MT19937
+ Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura
+ This software is distributed under a (three-clause) BSD-style license.
+ See the LICENSE file in the distribution for details.
Modified: branches/upstream/libmath-random-mt-perl/current/_mt.c
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmath-random-mt-perl/current/_mt.c?rev=41402&op=diff
==============================================================================
--- branches/upstream/libmath-random-mt-perl/current/_mt.c (original)
+++ branches/upstream/libmath-random-mt-perl/current/_mt.c Thu Aug 6 11:20:44 2009
@@ -1,16 +1,11 @@
-/*
- * Math::Random::MT
- * Copyright (C) 1997, 1999 Makoto Matsumoto and Takuji Nishimura.
- * Copyright 2001 Abhijit Menon-Sen <ams at wiw.org>
- */
-
#include "mt.h"
+#include <stdlib.h>
#include <stdio.h>
/* This code is based on mt19937ar.c, written by Takuji Nishimura and
Makoto Matsumoto (20020126). Further details are available at
- <URL:http://www.math.keio.ac.jp/matumoto/emt.html>.
+ <http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html>.
REFERENCE
M. Matsumoto and T. Nishimura,
Modified: branches/upstream/libmath-random-mt-perl/current/mt.h
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmath-random-mt-perl/current/mt.h?rev=41402&op=diff
==============================================================================
--- branches/upstream/libmath-random-mt-perl/current/mt.h (original)
+++ branches/upstream/libmath-random-mt-perl/current/mt.h Thu Aug 6 11:20:44 2009
@@ -1,11 +1,7 @@
-/*
- * $Id: mt.h,v 1.00 2002/02/08 19:22:46 ams Exp $
- * Copyright 2001 Abhijit Menon-Sen <ams at wiw.org>
- */
+#ifndef _MATH_MT_H_
+#define _MATH_MT_H_
-#include <stdlib.h>
-
-#if defined(__linux__) || defined(__WIN32__)
+#if defined(__linux__) || defined(__WIN32__) || defined(__GLIBC__)
#include <stdint.h>
#elif defined(__osf__)
#include <inttypes.h>
@@ -13,10 +9,6 @@
#include <sys/types.h>
#endif
-#ifndef _MATH_MT_H_
-#define _MATH_MT_H_
-
-/* Period parameters */
enum { N = 624, M = 397 };
struct mt {
More information about the Pkg-perl-cvs-commits
mailing list