summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--luni/src/main/java/org/apache/harmony/security/fortress/Services.java1
-rw-r--r--luni/src/test/java/libcore/java/security/SecureRandomTest.java2
2 files changed, 3 insertions, 0 deletions
diff --git a/luni/src/main/java/org/apache/harmony/security/fortress/Services.java b/luni/src/main/java/org/apache/harmony/security/fortress/Services.java
index 5f3dfe0..234f4a2 100644
--- a/luni/src/main/java/org/apache/harmony/security/fortress/Services.java
+++ b/luni/src/main/java/org/apache/harmony/security/fortress/Services.java
@@ -90,6 +90,7 @@ public class Services {
}
}
Engine.door.renumProviders();
+ setNeedRefresh();
}
/**
diff --git a/luni/src/test/java/libcore/java/security/SecureRandomTest.java b/luni/src/test/java/libcore/java/security/SecureRandomTest.java
index f9edbaa..cf12120 100644
--- a/luni/src/test/java/libcore/java/security/SecureRandomTest.java
+++ b/luni/src/test/java/libcore/java/security/SecureRandomTest.java
@@ -102,6 +102,8 @@ public class SecureRandomTest extends TestCase {
public void testNewConstructors_Success() throws Exception {
SecureRandom sr1 = new SecureRandom();
+ assertNotNull(sr1);
+ assertNotNull(sr1.getProvider());
assertEquals(EXPECTED_PROVIDER, sr1.getProvider().getClass().getName());
test_SecureRandom(sr1);