<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Random on Kevin wang's blog</title><link>https://kevinwang930.github.io/tags/random/</link><description>Recent content in Random on Kevin wang's blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 23 Jul 2026 21:45:00 +0200</lastBuildDate><atom:link href="https://kevinwang930.github.io/tags/random/index.xml" rel="self" type="application/rss+xml"/><item><title>Random Number Generation in the JDK: Lineages and Algorithms</title><link>https://kevinwang930.github.io/post/computer/java-random/</link><pubDate>Thu, 23 Jul 2026 21:45:00 +0200</pubDate><guid>https://kevinwang930.github.io/post/computer/java-random/</guid><description>&lt;p&gt;The JDK does not define a single random-number subsystem. It exposes distinct APIs in &lt;code&gt;java.util&lt;/code&gt;, &lt;code&gt;java.util.concurrent&lt;/code&gt;, &lt;code&gt;java.security&lt;/code&gt;, and, since Java 17, &lt;code&gt;java.util.random&lt;/code&gt;. This post gives an &lt;strong&gt;overview&lt;/strong&gt; of those API lineages, then the &lt;strong&gt;generator mechanisms&lt;/strong&gt; behind each type, and finally a &lt;strong&gt;lineage selection&lt;/strong&gt; procedure with invocation patterns. Pseudorandom generation is not encryption; cryptographic protocols obtain secret material from the JCA &lt;code&gt;SecureRandom&lt;/code&gt; path.&lt;/p&gt;</description></item></channel></rss>