From fbe62c544e5bdf8c69a36a4d50b20c685ed715ac Mon Sep 17 00:00:00 2001 From: blackbox87 Date: Mon, 26 Aug 2013 17:56:44 +0100 Subject: [PATCH] Some kernels have frandom and erandom When a users kernel has frandom and erandom this would cause the whole app to crash. When using erandom the system doesn't use any entropy at all. --- src/com/fsck/k9/PRNGFixes.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/fsck/k9/PRNGFixes.java b/src/com/fsck/k9/PRNGFixes.java index e7b9e01c5..e0b5d563b 100644 --- a/src/com/fsck/k9/PRNGFixes.java +++ b/src/com/fsck/k9/PRNGFixes.java @@ -215,8 +215,7 @@ public final class PRNGFixes { out.flush(); mSeeded = true; } catch (IOException e) { - throw new SecurityException( - "Failed to mix seed into " + URANDOM_FILE, e); + mSeeded = true; } }