diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-13 08:08:41 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-13 08:08:44 -0400 |
commit | 82ea1cf35a2b10bb7a2cfbaa0d9bac98fe5bb182 (patch) | |
tree | 22688d9a8a3858099f46decf88206907172cdf51 /src/core/crypto | |
parent | 1584fb6b385d51ef40e1e22c180322a552d9c98a (diff) |
key_manager: Remove unnecessary seek in DeriveSDSeed()
Given the file is opened a few lines above and no operations are done,
other than check if the file is in a valid state, the read/write pointer
will always be at the beginning of the file.
Diffstat (limited to 'src/core/crypto')
-rw-r--r-- | src/core/crypto/key_manager.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp index a59a7e1f5..4ade67d23 100644 --- a/src/core/crypto/key_manager.cpp +++ b/src/core/crypto/key_manager.cpp @@ -152,7 +152,6 @@ boost::optional<Key128> DeriveSDSeed() { if (!sd_private.IsOpen()) return boost::none; - sd_private.Seek(0, SEEK_SET); std::array<u8, 0x10> private_seed{}; if (sd_private.ReadBytes(private_seed.data(), private_seed.size()) != 0x10) return boost::none; |