<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Random number generation takes too long. in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Random-number-generation-takes-too-long/m-p/2342732#M57634</link>
    <description>&lt;P&gt;The first execution of random number generation takes 92 ms, whereas the execution time is reduced to dozens of microseconds in all subsequent generations. What causes this difference in execution time?&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2026 09:34:06 GMT</pubDate>
    <dc:creator>liyongfeng</dc:creator>
    <dc:date>2026-03-31T09:34:06Z</dc:date>
    <item>
      <title>Random number generation takes too long.</title>
      <link>https://community.nxp.com/t5/S32K/Random-number-generation-takes-too-long/m-p/2342732#M57634</link>
      <description>&lt;P&gt;The first execution of random number generation takes 92 ms, whereas the execution time is reduced to dozens of microseconds in all subsequent generations. What causes this difference in execution time?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 09:34:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Random-number-generation-takes-too-long/m-p/2342732#M57634</guid>
      <dc:creator>liyongfeng</dc:creator>
      <dc:date>2026-03-31T09:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Random number generation takes too long.</title>
      <link>https://community.nxp.com/t5/S32K/Random-number-generation-takes-too-long/m-p/2343094#M57642</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184101"&gt;@liyongfeng&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is expected behavior and it is described in HSE Firmware reference manual v2.7, section:&lt;/P&gt;
&lt;P&gt;“14.6.12 Delay in processing of first heavy operation after boot”&lt;/P&gt;
&lt;P&gt;It’s caused by generation of seed value by true random generator and it cannot be avoided.&lt;/P&gt;
&lt;P&gt;Next generations of random number use pseudo random generator which is using that seed. Depending on the RNG class, the reseeding is done periodically as shown in “Table 86. RNG Classes” in the mentioned reference manual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case of S32K344/324/314, the execution time for seeding depends on HSE clock. It’s about 92ms for 80MHz and about 61ms for 120MHz.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case of other devices, you should see about 40ms mentioned in the manual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 13:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Random-number-generation-takes-too-long/m-p/2343094#M57642</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2026-03-31T13:31:10Z</dc:date>
    </item>
  </channel>
</rss>

