pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/hs-splitmix Import splitmix-0.0.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ce09cdfd88ce
branches:  trunk
changeset: 420179:ce09cdfd88ce
user:      pho <pho%pkgsrc.org@localhost>
date:      Wed Jan 01 03:41:02 2020 +0000

description:
Import splitmix-0.0.3

Pure Haskell implementation of SplitMix described in

Guy L. Steele, Jr., Doug Lea, and Christine H. Flood. 2014. Fast
splittable pseudorandom number generators. In Proceedings of the 2014
ACM International Conference on Object Oriented Programming Systems
Languages & Applications (OOPSLA '14). ACM, New York, NY, USA,
453-472. DOI: https://doi.org/10.1145/2660193.2660195

The paper describes a new algorithm SplitMix for splittable
pseudorandom number generator that is quite fast: 9 64 bit
arithmetic/logical operations per 64 bits generated.

SplitMix is tested with two standard statistical test suites
(DieHarder and TestU01, this implementation only using the former) and
it appears to be adequate for "everyday" use, such as Monte Carlo
algorithms and randomized data structures where speed is important.

In particular, it should not be used for cryptographic or security
applications, because generated sequences of pseudorandom values are
too predictable (the mixing functions are easily inverted, and two
successive outputs suffice to reconstruct the internal state).

diffstat:

 devel/hs-splitmix/DESCR         |  21 +++++++++++++++++++++
 devel/hs-splitmix/Makefile      |  12 ++++++++++++
 devel/hs-splitmix/buildlink3.mk |  15 +++++++++++++++
 devel/hs-splitmix/distinfo      |   6 ++++++
 4 files changed, 54 insertions(+), 0 deletions(-)

diffs (70 lines):

diff -r 46961c330ab0 -r ce09cdfd88ce devel/hs-splitmix/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-splitmix/DESCR   Wed Jan 01 03:41:02 2020 +0000
@@ -0,0 +1,21 @@
+Pure Haskell implementation of SplitMix described in
+
+Guy L. Steele, Jr., Doug Lea, and Christine H. Flood. 2014. Fast
+splittable pseudorandom number generators. In Proceedings of the 2014
+ACM International Conference on Object Oriented Programming Systems
+Languages & Applications (OOPSLA '14). ACM, New York, NY, USA,
+453-472. DOI: https://doi.org/10.1145/2660193.2660195
+
+The paper describes a new algorithm SplitMix for splittable
+pseudorandom number generator that is quite fast: 9 64 bit
+arithmetic/logical operations per 64 bits generated.
+
+SplitMix is tested with two standard statistical test suites
+(DieHarder and TestU01, this implementation only using the former) and
+it appears to be adequate for "everyday" use, such as Monte Carlo
+algorithms and randomized data structures where speed is important.
+
+In particular, it should not be used for cryptographic or security
+applications, because generated sequences of pseudorandom values are
+too predictable (the mixing functions are easily inverted, and two
+successive outputs suffice to reconstruct the internal state).
diff -r 46961c330ab0 -r ce09cdfd88ce devel/hs-splitmix/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-splitmix/Makefile        Wed Jan 01 03:41:02 2020 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile,v 1.1 2020/01/01 03:41:02 pho Exp $
+
+DISTNAME=      splitmix-0.0.3
+CATEGORIES=    devel
+
+MAINTAINER=    pho%cielonegro.org@localhost
+COMMENT=       Fast Splittable PRNG
+LICENSE=       modified-bsd
+
+.include "../../mk/haskell.mk"
+.include "../../devel/hs-random/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 46961c330ab0 -r ce09cdfd88ce devel/hs-splitmix/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-splitmix/buildlink3.mk   Wed Jan 01 03:41:02 2020 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/01/01 03:41:02 pho Exp $
+
+BUILDLINK_TREE+=       hs-splitmix
+
+.if !defined(HS_SPLITMIX_BUILDLINK3_MK)
+HS_SPLITMIX_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-splitmix+=    hs-splitmix>=0.0.3
+BUILDLINK_ABI_DEPENDS.hs-splitmix+=    hs-splitmix>=0.0.3
+BUILDLINK_PKGSRCDIR.hs-splitmix?=      ../../devel/hs-splitmix
+
+.include "../../devel/hs-random/buildlink3.mk"
+.endif # HS_SPLITMIX_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-splitmix
diff -r 46961c330ab0 -r ce09cdfd88ce devel/hs-splitmix/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-splitmix/distinfo        Wed Jan 01 03:41:02 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/01/01 03:41:02 pho Exp $
+
+SHA1 (splitmix-0.0.3.tar.gz) = f6ee5e20c0d7e7c6771e92b7db2422910ecf67c9
+RMD160 (splitmix-0.0.3.tar.gz) = 2f34290b5a72c2a49ac8aed8bfa85bd55111f2e1
+SHA512 (splitmix-0.0.3.tar.gz) = 01d53a606de35c1aef5b4669c19308f63711053a6fee38466e421a7e712bca7cbfa37ffdfcf2a4671fc22354b5e83228255785a808c1b6c3ad941fd550d5560f
+Size (splitmix-0.0.3.tar.gz) = 13616 bytes



Home | Main Index | Thread Index | Old Index