]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Rollup merge of #78785 - cuviper:weak-getrandom, r=m-ou-se
authorMara Bos <m-ou.se@m-ou.se>
Wed, 18 Nov 2020 14:46:23 +0000 (15:46 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Nov 2020 14:46:23 +0000 (15:46 +0100)
commit61134aa54cd70f6d6a540f9ce221310456b683ce
tree214a33171a17877dc612341b1855441b3cc6907b
parentc7e9029b8064a48a983040937bae056617729980
parentcd22381daa7f23bf20a739ac35c95ff77921d9a0
Rollup merge of #78785 - cuviper:weak-getrandom, r=m-ou-se

linux: try to use libc getrandom to allow interposition

We'll try to use a weak `getrandom` symbol first, because that allows
things like `LD_PRELOAD` interposition. For example, perf measurements
might want to disable randomness to get reproducible results. If the
weak symbol is not found, we fall back to a raw `SYS_getrandom` call.