News for hackers. Stuff that matters.
Re:Show HN: Simple way to obtain pseudorandomness from CPU c... by coolaliasbro on Friday August 17, 2018 @09:42AM (#17782748)
Pseudorandomness vs randomness is a funny distinction to me because randomness effectively boils down to either an inadequate dataset or inadequate computational resources for analyzing an adequate dataset, with adequateness being an arbitrary measure. In other words, any apparently random sequence approaches pseudorandomness as more computational resources are applied to its analysis.
Re:Show HN: Simple way to obtain pseudorandomness from CPU c... by qoi2ijds0 on Thursday August 16, 2018 @07:44AM (#17773778)
Does this not imply that its usefulness degrades depending on how much random data you need / the frequency at which you need it? For example if you ask for 8 bits of randomness within the same time-slice (either as a chunk of 8 bits or 8 separate invocations) - then you're only ever going to get 00000000 or 11111111 as your "pseudorandom" values (and this feels like it would be an easily re-producible outcome)
Re:Show HN: Simple way to obtain pseudorandomness from CPU c... by maxamel on Thursday August 16, 2018 @09:26AM (#17774392)
There is a limit on the frequency of requests, which makes sure the bit will be flipped several times before every request. Current enforced minimum is 20 milliseconds (roughly 50 bits/second). Lower values may be safe as well, but have not been tested yet.
Re:Show HN: Simple way to obtain pseudorandomness from CPU c... by zkms on Thursday August 16, 2018 @02:29AM (#17772392)
> BitGenGo is actually a small program which spawns off two goroutines(threads) and they take turns setting a shared variable with a value(zero/one). Every time the user requests a bit, the current value of the shared variable is returned.

dakarand!

Re:Show HN: Simple way to obtain pseudorandomness from CPU c... by HerrMonnezza on Thursday August 16, 2018 @04:32AM (#17772953)
I had to google "dakarand"; here are links to the original post announcing the DakaRand code and the GitHub repository:

- https://dankaminsky.com/2012/08/15/dakarand/ - https://github.com/stribika/dakarand

Re:Show HN: Simple way to obtain pseudorandomness from CPU c... by dis-sys on Thursday August 16, 2018 @01:32AM (#17772164)
interesting project!

will be great if the author can add some Go benchmark results comparing this library to the one in Go's stdlib, will be useful for potential users to know what kind of CPU performance they can expect.

Re:Show HN: Simple way to obtain pseudorandomness from CPU c... by maxamel on Thursday August 16, 2018 @04:13AM (#17772841)
This is a good idea. It'll be added in the next commit.