File: control

package info (click to toggle)
golang-github-nebulouslabs-fastrand 0.0~git20170512.60b6156-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 92 kB
  • sloc: makefile: 2
file content (55 lines) | stat: -rw-r--r-- 2,569 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Source: golang-github-nebulouslabs-fastrand
Section: devel
Priority: optional
Maintainer: Debian Go Packaging Team <pkg-go-maintainers@lists.alioth.debian.org>
Uploaders: Bjorn Dolk <debian@bjorndolk.com>
Build-Depends: debhelper (>= 10),
               dh-golang,
               golang-any,
               golang-golang-x-crypto-dev,
               golang-github-dchest-blake2b-dev
Standards-Version: 4.1.1
Homepage: https://github.com/NebulousLabs/fastrand
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-go/packages/golang-github-nebulouslabs-fastrand.git
Vcs-Git: https://anonscm.debian.org/git/pkg-go/packages/golang-github-nebulouslabs-fastrand.git
XS-Go-Import-Path: github.com/NebulousLabs/fastrand

Package: golang-github-nebulouslabs-fastrand-dev
Architecture: all
Depends: ${shlibs:Depends},
         ${misc:Depends},
         golang-golang-x-crypto-dev,
         golang-github-dchest-blake2b-dev
Description: 10x faster than crypto/rand
 fastrand GoDoc
 (https://godoc.org/github.com/NebulousLabs/fastrand) Go Report Card
 (https://goreportcard.com/report/github.com/NebulousLabs/fastrand)
 .
 go get github.com/NebulousLabs/fastrand
 .
 fastrand implements a cryptographically secure pseudorandom number
 generator.  The generator is seeded using the system's default entropy
 source, and thereafter produces random values via repeated hashing. As
 a result, fastrand can generate randomness much faster than crypto/rand,
 and generation cannot fail beyond a potential panic during init().
 .
 Unlike both crypto/rand and math/rand, fastrand provides significant
 speedups when called using parallelism. In fact, fastrand can even
 outperform math/rand when using enough threads.
 .
 Packages uses something similar to the Fortuna algorithm, which is used
 in FreeBSD as its /dev/random. The techniques used by fastrand are known
 to be secure, however the specific implementation has not been reviewed
 extensively. Use with caution.
 .
 The general strategy is to use crypto/rand at init to get 32 bytes of
 strong entropy. From there, the entropy concatenated to a counter and
 hashed repeatedly, providing a new 64 bytes of random output each time
 the counter is incremented. The counter is 16 bytes, which provides
 strong guarantees that a cycle will not be seen throughout the lifetime
 of the program.
 .
 The sync/atomic package is used to ensure that multiple threads calling
 fastrand concurrently are always guaranteed to end up with unique
 counters, allowing callers to see speedups by calling concurrently,
 without compromising security.