public Sun() {
/* We are the SUN provider */
super("SUN", 1.6, INFO);
// if there is no security manager installed, put directly into
// the provider. Otherwise, create a temporary map and use a
// doPrivileged() call at the end to transfer the contents
if (System.getSecurityManager() == null) {
SunEntries.putEntries(this);
} else {
// use LinkedHashMap to preserve the order of the PRNGs
Map< Object, Object > map = new LinkedHashMap< Object, Object >();
SunEntries.putEntries(map);
AccessController.doPrivileged(new PutAllAction(this, map));
}
}