Emmanuel Odeke 29471d75cb
common: no more relying on math/rand.DefaultSource
Fixes https://github.com/tendermint/tmlibs/issues/99
Updates https://github.com/tendermint/tendermint/issues/973

Removed usages of math/rand.DefaultSource in favour of our
own source that's seeded with a completely random source
and is safe for use in concurrent in multiple goroutines.
Also extend some functionality that the stdlib exposes such as
* RandPerm
* RandIntn
* RandInt31
* RandInt63

Also added an integration test whose purpose is to be run as
a consistency check to ensure that our results never repeat
hence that our internal PRNG is uniquely seeded each time.
This integration test can be triggered by setting environment variable:
`TENDERMINT_INTEGRATION_TESTS=true`
for example
```shell
TENDERMINT_INTEGRATION_TESTS=true go test
```
2017-12-14 00:18:30 -07:00
2017-10-30 13:01:18 -05:00
2017-12-12 23:23:49 -06:00
2017-11-27 19:49:30 +00:00
2017-11-20 03:06:18 +00:00
2017-10-03 17:23:14 -04:00
2017-04-18 17:56:05 -04:00
2017-12-05 18:04:28 -06:00
2017-11-11 11:25:30 -05:00
2017-12-06 02:05:57 -05:00
2017-11-29 05:08:05 +00:00
2017-10-11 12:48:05 +04:00
2017-12-05 17:49:42 -06:00
2017-12-05 17:49:42 -06:00
2017-12-06 02:05:57 -05:00
2017-11-29 05:08:05 +00:00
2017-04-18 17:56:05 -04:00
2017-11-29 05:08:05 +00:00
Description
No description provided
Apache-2.0 63 MiB
Languages
Go 72.6%
C 17.7%
Shell 3.2%
Python 1.6%
Makefile 1%
Other 3.7%