[riot-devel] To global seed or not to global seed
ludwig.knuepfer at fu-berlin.de
Wed Mar 8 10:25:27 CET 2017
Am 8. März 2017 10:06:17 MEZ schrieb "Cenk Gündoğan" <list-riot at cgundogan.de>:
>On 17-03-08 09:09:34, Kaspar Schleiser wrote:
>> That way we'd have:
>> - user controlled state
>> - the ability to overload (e.g., combine hwrng, collected entropy,
>> but with the same interface)
>Looks good at first sight. We also would need some sort of
>synchronization for concurrent access, e.g. a mutex in the `rnd_t`
>struct, if two threads should use the same local state.
Just as a remark (might make sense to copy and paste to upcoming documentation):
If two threads are using the same local state they will probably not get deterministic numbers.
More information about the devel