Commit 01b52f01 authored by Jason A. Donenfeld's avatar Jason A. Donenfeld
Browse files

selftests: vDSO: simplify getrandom thread local storage and structs



Rather than using pthread_get/set_specific, just use gcc's __thread
annotation, which is noticeably faster and makes the code more obvious.

Also, just have one simplified struct called vgrnd, instead of trying to
split things up semantically. Those divisions were useful when this code
was split across several commit *messages*, but doesn't make as much
sense within a single file. This should make the code more clear and
provide a better example for implementers.

Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
parent d5d547aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment