Author | SHA1 | Message | Date |
---|---|---|---|
Emmanuel Odeke |
84afef20f5
|
common: fix BitArray.Update to avoid nil dereference
Update previously only checked that the receiver was
non-nil but didn't check that the input parameter to update
"o" was non-nil causing a nil dereference in cases such as
|
7 years ago |
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 ``` |
7 years ago |
Ethan Buchman | 356657a37b | move all files to common/ to begin repo merge | 8 years ago |
Jae Kwon | 9dc4dc1960 | Add BitArray.Update() | 8 years ago |
Ethan Buchman | dcfa46af13 | BitArray.IsEmpty() | 9 years ago |
Jae Kwon | 1559ae1ac9 | Add BitArray.Bytes() | 9 years ago |
Jae Kwon | 16372365c4 | First commit | 9 years ago |