<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Random pool numbers - documentation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2370/random-pool-numbers---documentation</link><description>Dear Nordic, 
 Is there any documentation available,how the random pool works and where is expected that SoftDevice offers something and when it is blocked? And if there are no bytes available, it is sure that will be in future? I am working on very</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Apr 2014 14:44:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2370/random-pool-numbers---documentation" /><item><title>RE: Random pool numbers - documentation</title><link>https://devzone.nordicsemi.com/thread/9698?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2014 14:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2e2a101-a857-429c-95f3-f91bbcc8e6f2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Jan,&lt;/p&gt;
&lt;p&gt;The execution time of this function will depend on the stack availability.
Doing blocking while-loops are always risky, but in this case you could end up in a while(1):
The sd_app_event_wait is actually a wrapper function of __WFE().
What it does is that it forwards &amp;quot;open&amp;quot; peripheral (open = not used by SD) events to the application, and since the RNG is not forwarded, you can end up waiting for a long period of time.
It&amp;#39;s recommended not to sleep in this function.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If I get the available bytes, how long do they keep available?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;They are kept in an application pool inside the softdevice, so it&amp;#39;s valid until read out.&lt;/p&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>