diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-11-13 12:25:43 -0500 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-13 12:26:03 -0500 |
commit | ab552e4a252b66ca02c04724a1773edbefec6837 (patch) | |
tree | 544702301230e785639d7ff4cfbaa2e99294a4b9 /src/yuzu/configuration/configure_system.cpp | |
parent | 65bd03d74cbf4d8072239480404c6db83d41b27c (diff) |
svc: Use proper random entropy generation algorithm
Diffstat (limited to 'src/yuzu/configuration/configure_system.cpp')
-rw-r--r-- | src/yuzu/configuration/configure_system.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp index 67f07ecb14..ab5d46492b 100644 --- a/src/yuzu/configuration/configure_system.cpp +++ b/src/yuzu/configuration/configure_system.cpp @@ -140,7 +140,7 @@ ConfigureSystem::ConfigureSystem(QWidget* parent) connect(ui->rng_seed_checkbox, &QCheckBox::stateChanged, this, [this](bool checked) { ui->rng_seed_edit->setEnabled(checked); if (!checked) - ui->rng_seed_edit->setText(QStringLiteral("0000000000000000")); + ui->rng_seed_edit->setText(QStringLiteral("00000000")); }); scene = new QGraphicsScene; @@ -165,9 +165,8 @@ void ConfigureSystem::setConfiguration() { ui->rng_seed_checkbox->setChecked(Settings::values.rng_seed.has_value()); ui->rng_seed_edit->setEnabled(Settings::values.rng_seed.has_value()); - const auto rng_seed = QString("%1") - .arg(Settings::values.rng_seed.value_or(0), 16, 16, QLatin1Char{'0'}) - .toUpper(); + const auto rng_seed = + QString("%1").arg(Settings::values.rng_seed.value_or(0), 8, 16, QLatin1Char{'0'}).toUpper(); ui->rng_seed_edit->setText(rng_seed); } |