This package contains code for generating high quality random numbers
that follow either a uniform or normal distribution. The generated numbers are suitable for use in statistical applications. The uniform PRNG uses Marsaglia's MWC256 (also known as MWC8222) multiply-with-carry generator, which has a period of 2^8222 and fares well in tests of randomness. It is also extremely fast, between 2 and 3 times faster than the Mersenne Twister. Compared to the mersenne-random package, this package has a more convenient API, is faster, and supports more statistical distributions. ok sthen@
This commit is contained in:
parent
8629a4fd7b
commit
ca7604ff1e
22
security/hs-mwc-random/Makefile
Normal file
22
security/hs-mwc-random/Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/01/22 17:16:04 kili Exp $
|
||||
|
||||
COMMENT= fast, high quality pseudo random number generation
|
||||
|
||||
DISTNAME= mwc-random-0.10.0.1
|
||||
CATEGORIES= math security
|
||||
|
||||
# BSD3
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MODULES= lang/ghc
|
||||
|
||||
MODGHC_BUILD = cabal hackage haddock register
|
||||
|
||||
RUN_DEPENDS = devel/hs-primitive \
|
||||
devel/hs-vector>=0.6.0.2
|
||||
BUILD_DEPENDS = ${RUN_DEPENDS}
|
||||
|
||||
.include <bsd.port.mk>
|
5
security/hs-mwc-random/distinfo
Normal file
5
security/hs-mwc-random/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (ghc/mwc-random-0.10.0.1.tar.gz) = HrELm7dg5Yekgnz45DCc4w==
|
||||
RMD160 (ghc/mwc-random-0.10.0.1.tar.gz) = F2rk/Faz8Ay20At5rMMSgfwZD/o=
|
||||
SHA1 (ghc/mwc-random-0.10.0.1.tar.gz) = A5JL6Jsu3hr0EAX9I1z7mN600yQ=
|
||||
SHA256 (ghc/mwc-random-0.10.0.1.tar.gz) = K3Hq2Znu4749X+EwIkXmNdEz2opW+PF6Fu4Ul0Gis1Y=
|
||||
SIZE (ghc/mwc-random-0.10.0.1.tar.gz) = 11062
|
11
security/hs-mwc-random/pkg/DESCR
Normal file
11
security/hs-mwc-random/pkg/DESCR
Normal file
@ -0,0 +1,11 @@
|
||||
This package contains code for generating high quality random numbers
|
||||
that follow either a uniform or normal distribution. The generated
|
||||
numbers are suitable for use in statistical applications.
|
||||
|
||||
The uniform PRNG uses Marsaglia's MWC256 (also known as MWC8222)
|
||||
multiply-with-carry generator, which has a period of 2^8222 and
|
||||
fares well in tests of randomness. It is also extremely fast,
|
||||
between 2 and 3 times faster than the Mersenne Twister.
|
||||
|
||||
Compared to the mersenne-random package, this package has a more
|
||||
convenient API, is faster, and supports more statistical distributions.
|
27
security/hs-mwc-random/pkg/PLIST
Normal file
27
security/hs-mwc-random/pkg/PLIST
Normal file
@ -0,0 +1,27 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/01/22 17:16:04 kili Exp $
|
||||
lib/ghc/${DISTNAME}/
|
||||
lib/ghc/${DISTNAME}/HS${DISTNAME}.o
|
||||
lib/ghc/${DISTNAME}/System/
|
||||
lib/ghc/${DISTNAME}/System/Random/
|
||||
lib/ghc/${DISTNAME}/System/Random/MWC.hi
|
||||
lib/ghc/${DISTNAME}/libHS${DISTNAME}.a
|
||||
lib/ghc/${DISTNAME}/register.sh
|
||||
@exec /usr/bin/env HOME=/nonexistent %D/lib/ghc/${DISTNAME}/register.sh -v0
|
||||
@unexec /usr/bin/env HOME=/nonexistent %D/lib/ghc/${DISTNAME}/unregister.sh -v0 --force
|
||||
lib/ghc/${DISTNAME}/unregister.sh
|
||||
share/doc/hs-${DISTNAME}/
|
||||
share/doc/hs-${DISTNAME}/LICENSE
|
||||
share/doc/hs-${DISTNAME}/html/
|
||||
share/doc/hs-${DISTNAME}/html/System-Random-MWC.html
|
||||
share/doc/hs-${DISTNAME}/html/doc-index.html
|
||||
share/doc/hs-${DISTNAME}/html/frames.html
|
||||
share/doc/hs-${DISTNAME}/html/haddock-util.js
|
||||
share/doc/hs-${DISTNAME}/html/hslogo-16.png
|
||||
share/doc/hs-${DISTNAME}/html/index-frames.html
|
||||
share/doc/hs-${DISTNAME}/html/index.html
|
||||
share/doc/hs-${DISTNAME}/html/mini_System-Random-MWC.html
|
||||
share/doc/hs-${DISTNAME}/html/minus.gif
|
||||
share/doc/hs-${DISTNAME}/html/mwc-random.haddock
|
||||
share/doc/hs-${DISTNAME}/html/ocean.css
|
||||
share/doc/hs-${DISTNAME}/html/plus.gif
|
||||
share/doc/hs-${DISTNAME}/html/synopsis.png
|
Loading…
Reference in New Issue
Block a user