pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/hs-splitmix



Module Name:    pkgsrc
Committed By:   pho
Date:           Wed Jan  1 03:41:02 UTC 2020

Added Files:
        pkgsrc/devel/hs-splitmix: DESCR Makefile buildlink3.mk distinfo

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/hs-splitmix/DESCR \
    pkgsrc/devel/hs-splitmix/Makefile pkgsrc/devel/hs-splitmix/buildlink3.mk \
    pkgsrc/devel/hs-splitmix/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/hs-splitmix/DESCR
diff -u /dev/null pkgsrc/devel/hs-splitmix/DESCR:1.1
--- /dev/null   Wed Jan  1 03:41:02 2020
+++ pkgsrc/devel/hs-splitmix/DESCR      Wed Jan  1 03:41:02 2020
@@ -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).
Index: pkgsrc/devel/hs-splitmix/Makefile
diff -u /dev/null pkgsrc/devel/hs-splitmix/Makefile:1.1
--- /dev/null   Wed Jan  1 03:41:02 2020
+++ pkgsrc/devel/hs-splitmix/Makefile   Wed Jan  1 03:41:02 2020
@@ -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"
Index: pkgsrc/devel/hs-splitmix/buildlink3.mk
diff -u /dev/null pkgsrc/devel/hs-splitmix/buildlink3.mk:1.1
--- /dev/null   Wed Jan  1 03:41:02 2020
+++ pkgsrc/devel/hs-splitmix/buildlink3.mk      Wed Jan  1 03:41:02 2020
@@ -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
Index: pkgsrc/devel/hs-splitmix/distinfo
diff -u /dev/null pkgsrc/devel/hs-splitmix/distinfo:1.1
--- /dev/null   Wed Jan  1 03:41:02 2020
+++ pkgsrc/devel/hs-splitmix/distinfo   Wed Jan  1 03:41:02 2020
@@ -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