Merge remote-tracking branch 'origin/pr/84'
* origin/pr/84: fix reload_random_seed error handling
This commit is contained in:
commit
cc2fb303cb
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user