Merge remote-tracking branch 'origin/pr/84'

* origin/pr/84:
  fix reload_random_seed error handling
This commit is contained in:
Marek Marczykowski-Górecki 2016-11-17 09:30:14 +01:00
commit cc2fb303cb
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -93,7 +93,11 @@ is_updateable() {
}
reload_random_seed() {
qubesdb-read /qubes-random-seed | base64 -d > /dev/urandom
local seed
local decoded
seed=$(qubesdb-read /qubes-random-seed)
decoded=$(echo "$seed" | base64 -d)
echo "$decoded" > /dev/urandom
qubesdb-rm /qubes-random-seed
}