Unify timer code
authorPauli <paul.dale@oracle.com>
Mon, 5 Feb 2018 21:17:31 +0000 (07:17 +1000)
committerPauli <paul.dale@oracle.com>
Wed, 7 Feb 2018 00:08:15 +0000 (10:08 +1000)
commit2b66fd5720c38c6e89f9cd00d36d2c828ed4cd4b
tree7b0c8f57515effbe3873bd5769b996376e350e6f
parent360fc9f412f1f60a4644228d9b6d386161aad406
Unify timer code

Remove the timer and TSC additional input code and instead provide a single
routine that attempts to use the "best" timer/counter available on the
system.  It attempts to use TSC, then various OS dependent resources and
finally several tries to obtain the date.  If any of these timer/counters
is successful, the rest are skipped.

No randomness is credited for this.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/5231)
crypto/rand/rand_lib.c