guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#28028] [PATCH 2/9] gnu: Add perl-math-random-isaac-xs.


From: Ricardo Wurmus
Subject: [bug#28028] [PATCH 2/9] gnu: Add perl-math-random-isaac-xs.
Date: Wed, 9 Aug 2017 19:00:30 +0200

* gnu/packages/perl.scm (perl-math-random-isaac-xs): New variable.
---
 gnu/packages/perl.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index dcd9640d9..b3fc75a70 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -4067,6 +4067,34 @@ implementation of these functions only serves as a 
fallback in case the C
 portions of this module couldn't be compiled on this machine.")
     (license (package-license perl))))
 
+(define-public perl-math-random-isaac-xs
+  (package
+    (name "perl-math-random-isaac-xs")
+    (version "1.004")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/J/JA/JAWNSY/"
+                           "Math-Random-ISAAC-XS-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0yxqqcqvj51fn7b7j5xqhz65v74arzgainn66c6k7inijbmr1xws"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-module-build" ,perl-module-build)
+       ("perl-test-nowarnings" ,perl-test-nowarnings)))
+    (home-page "http://search.cpan.org/dist/Math-Random-ISAAC-XS";)
+    (synopsis "C implementation of the ISAAC PRNG algorithm")
+    (description "ISAAC (Indirection, Shift, Accumulate, Add, and Count) is a
+fast pseudo-random number generator.  It is suitable for applications where a
+significant amount of random data needs to be produced quickly, such as
+solving using the Monte Carlo method or for games.  The results are uniformly
+distributed, unbiased, and unpredictable unless you know the seed.
+
+This package provides implements the same interface as
address@hidden::Random::ISAAC}.")
+    (license public-domain)))
+
 (define-public perl-memoize-expirelru
   (package
     (name "perl-memoize-expirelru")
-- 
2.13.2






reply via email to

[Prev in Thread] Current Thread [Next in Thread]