Is Java’s probablePrime used in production?


Prime numbers are core in security.
I saw this question about Java’s probablePrime and was wondering if that API/approach is indeed used for real production-ready security code or other approaches are preferred to ensure there is 0 possibility of using a non-prime number