1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-11 21:17:28 +03:00
This commit is contained in:
Rui Ueyama 2022-10-18 13:02:02 +08:00
parent 7cb97e153a
commit ad87ac28b7
3 changed files with 3 additions and 3 deletions

View File

@ -765,7 +765,7 @@ static void shuffle(std::vector<T> &vec, u64 seed) {
// Xorshift random number generator. We use this RNG because it is
// measurably faster than MT19937.
auto rand = [&]() {
auto rand = [&] {
seed ^= seed << 13;
seed ^= seed >> 7;
seed ^= seed << 17;

View File

@ -71,7 +71,7 @@ static void do_load_plugin(Context<E> &ctx) {
template <typename E>
void load_lto_plugin(Context<E> &ctx) {
std::call_once(ctx.lto_plugin_loaded, [&]() { do_load_plugin(ctx); });
std::call_once(ctx.lto_plugin_loaded, [&] { do_load_plugin(ctx); });
}
template <typename E>

2
sha.h
View File

@ -16,7 +16,7 @@ inline static BCRYPT_ALG_HANDLE get_sha256_handle() {
static std::once_flag once;
static BCRYPT_ALG_HANDLE alg;
std::call_once(once, [&]() {
std::call_once(once, [&] {
BCryptOpenAlgorithmProvider(&alg, BCRYPT_SHA256_ALGORITHM, nullptr, 0);
});
return alg;