From 3cf7c3ef441822c889356fd1812ebf2944a59851 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 25 Aug 2020 10:45:55 +0100 Subject: gentoo resync : 25.08.2020 --- dev-haskell/splitmix/Manifest | 3 +++ dev-haskell/splitmix/metadata.xml | 36 ++++++++++++++++++++++++++++++ dev-haskell/splitmix/splitmix-0.0.4.ebuild | 33 +++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 dev-haskell/splitmix/Manifest create mode 100644 dev-haskell/splitmix/metadata.xml create mode 100644 dev-haskell/splitmix/splitmix-0.0.4.ebuild (limited to 'dev-haskell/splitmix') diff --git a/dev-haskell/splitmix/Manifest b/dev-haskell/splitmix/Manifest new file mode 100644 index 000000000000..a88432eb6321 --- /dev/null +++ b/dev-haskell/splitmix/Manifest @@ -0,0 +1,3 @@ +DIST splitmix-0.0.4.tar.gz 13821 BLAKE2B 15c2f3b783b98deccf31e2501ba6c67788047ad3bf5c29fbba965c1163506d0055e94bc02894f17df088e67921447893f42a85f5eece7828625d75c177837f43 SHA512 9b8c137067497b94a460d024e1f7c3269e27536f505649face85748a0aaea273d32893a806d9ecf551bd29532ed820004ed2dde47e1099afc3c31519ea5cdbac +EBUILD splitmix-0.0.4.ebuild 934 BLAKE2B f3782b73fa15b5995421acc439f1bb709893658f3cc29822e876c0d2235f8726bb2854acaec8f81a45251552cdf01af86b47720a0ae7742518609fae1bdda4a9 SHA512 ec30b081c2614e1d153fd84e3e2815a541f81d0e90eb82f6bf6215821d2d116d480593494e43495b5b8c02cfbaeb0c1419943f392bd3f98ecc1f76c603e116b1 +MISC metadata.xml 1590 BLAKE2B 8e40c0429c9292e72149f06cf3e90d5363daf1d153a7a57a1345789126d6fd0622b7319e68a55cadd7cbb446f57f72917a28f95d75cc1aaf24c6ca7a13131a00 SHA512 972a555b92eaa1faeec687b080ad6780a7d55b5da16772fe3928675ab8bcc87e3738c7dbf84c0b4cdeebee3be9f0f12a59a3e23b0bf81eaddc617b500ef13f6b diff --git a/dev-haskell/splitmix/metadata.xml b/dev-haskell/splitmix/metadata.xml new file mode 100644 index 000000000000..07dd5f4f5b23 --- /dev/null +++ b/dev-haskell/splitmix/metadata.xml @@ -0,0 +1,36 @@ + + + + + haskell@gentoo.org + Gentoo Haskell + + + Use JavaScript for mix32 + Providen RandomGen SMGen instance + + + 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 --git a/dev-haskell/splitmix/splitmix-0.0.4.ebuild b/dev-haskell/splitmix/splitmix-0.0.4.ebuild new file mode 100644 index 000000000000..c658af591847 --- /dev/null +++ b/dev-haskell/splitmix/splitmix-0.0.4.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# ebuild generated by hackport 0.6.4 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" # circular deps: test-suite" +inherit haskell-cabal + +DESCRIPTION="Fast Splittable PRNG" +HOMEPAGE="https://hackage.haskell.org/package/splitmix" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="optimised-mixer +random" + +RESTRICT=test # circular deps: dev-haskell/splitmix[test]->dev-haskell/base-compat-batteries->dev-haskell/quickcheck->dev-haskell/splitmix + +RDEPEND=">=dev-lang/ghc-7.4.1:= + random? ( >=dev-haskell/random-1.0:=[profile?]