static random fields should not be used with graalvm as they are seeded at compile time and thus not random anymore

This commit is contained in:
Athou
2026-06-13 12:03:50 +02:00
parent 1388fba8e4
commit 00d7be735a
3 changed files with 29 additions and 16 deletions

View File

@@ -4,6 +4,7 @@ import jakarta.enterprise.event.Observes;
import jakarta.inject.Singleton;
import com.commafeed.backend.feed.FeedRefreshEngine;
import com.commafeed.backend.feed.ImageProxyUrl;
import com.commafeed.backend.task.TaskScheduler;
import com.commafeed.security.password.PasswordConstraintValidator;
@@ -26,6 +27,10 @@ public class CommaFeedApplication {
PasswordConstraintValidator.setMinimumPasswordLength(config.users().minimumPasswordLength());
if (config.imageProxyEnabled()) {
ImageProxyUrl.generateKey();
}
feedRefreshEngine.start();
taskScheduler.start();
}