|
41 | 41 | </a> <button class="navigation-controls--btn navigation-controls--btn_toc ui-kit_mobile-only" id="toc-toggle" type="button">Toggle table of contents |
42 | 42 | </button> |
43 | 43 | <div class="navigation-controls--break ui-kit_mobile-only"></div> |
44 | | - <div class="library-version" id="library-version">0.5.0 |
| 44 | + <div class="library-version" id="library-version">0.5.1 |
45 | 45 | </div> |
46 | 46 | <div class="navigation-controls"> |
47 | 47 | <div class="filter-section filter-section_loading" id="filter-section"> |
|
94 | 94 | <div class="breadcrumbs"><a href="../../../index.html">crypto-rand</a><span class="delimiter">/</span><a href="../../index.html">org.kotlincrypto.random</a><span class="delimiter">/</span><a href="../index.html">CryptoRand</a><span class="delimiter">/</span><span class="current">Default</span></div> |
95 | 95 | <div class="cover "> |
96 | 96 | <h1 class="cover"><span><span>Default</span></span></h1> |
97 | | - <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":library:crypto-rand/commonMain"><div class="symbol monospace"><span class="token keyword">object </span><a href="index.html">Default</a> : <a href="../index.html">CryptoRand</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/KotlinCrypto/random/tree/master/library/crypto-rand/src/commonMain/kotlin/org/kotlincrypto/random/CryptoRand.kt#L63">source</a>)</span></span></div><p class="paragraph">The default implementation of <a href="../index.html">CryptoRand</a>.</p><p class="paragraph">The following APIs are used for procuring cryptographically secure random data:</p><ul><li><p class="paragraph">Jvm: <a href="https://docs.oracle.com/javase/8/docs/api/java/security/SecureRandom.html">java.security.SecureRandom</a></p></li><li><p class="paragraph">Js:</p></li><ul><li><p class="paragraph">Browser: <a href="https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues">Crypto.getRandomValues()</a></p></li><li><p class="paragraph">Node: <a href="https://nodejs.org/api/crypto.html#cryptorandomfillsyncbuffer-offset-size">Crypto.randomFillSync()</a></p></li></ul><li><p class="paragraph">WasmJs:</p></li><ul><li><p class="paragraph">Browser: <a href="https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues">Crypto.getRandomValues()</a></p></li><li><p class="paragraph">Node: <a href="https://nodejs.org/api/crypto.html#cryptorandomfillsyncbuffer-offset-size">Crypto.randomFillSync()</a></p></li></ul><li><p class="paragraph">WasmWasi: <a href="https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md#random_get">random_get</a></p></li><li><p class="paragraph">Native:</p></li><ul><li><p class="paragraph">Linux & Android Native targets: <a href="https://www.man7.org/linux/man-pages/man2/getrandom.2.html">getrandom(2)</a> when available (GLIBC 2.25+ & Android API 23+), with a fallback to reading from <code class="lang-kotlin">/dev/urandom</code> after polling <code class="lang-kotlin">/dev/random</code> once (per process lifetime) to ensure appropriate levels of system entropy are had.</p></li><li><p class="paragraph">Apple targets: <a href="https://github.com/apple-oss-distributions/CommonCrypto/blob/main/include/CommonRandom.h">CCRandomGenerateBytes</a></p></li><li><p class="paragraph">Windows targets: <a href="https://learn.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom">BCryptGenRandom</a></p></li></ul></ul></div></div> |
| 97 | + <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":library:crypto-rand/commonMain"><div class="symbol monospace"><span class="token keyword">object </span><a href="index.html">Default</a> : <a href="../index.html">CryptoRand</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/KotlinCrypto/random/tree/master/library/crypto-rand/src/commonMain/kotlin/org/kotlincrypto/random/CryptoRand.kt#L63">source</a>)</span></span></div><p class="paragraph">The default implementation of <a href="../index.html">CryptoRand</a>.</p><p class="paragraph">The following APIs are used for procuring cryptographically secure random data:</p><ul><li><p class="paragraph">Jvm: <a href="https://docs.oracle.com/javase/8/docs/api/java/security/SecureRandom.html">java.security.SecureRandom</a></p></li><li><p class="paragraph">Js:</p></li><ul><li><p class="paragraph">Browser: <a href="https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues">Crypto.getRandomValues()</a></p></li><li><p class="paragraph">Node: <a href="https://nodejs.org/api/crypto.html#cryptorandomfillsyncbuffer-offset-size">Crypto.randomFillSync()</a></p></li></ul><li><p class="paragraph">WasmJs:</p></li><ul><li><p class="paragraph">Browser: <a href="https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues">Crypto.getRandomValues()</a></p></li><li><p class="paragraph">Node: <a href="https://nodejs.org/api/crypto.html#cryptorandomfillsyncbuffer-offset-size">Crypto.randomFillSync()</a></p></li></ul><li><p class="paragraph">WasmWasi: <a href="https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md#random_get">random_get</a></p></li><li><p class="paragraph">Native:</p></li><ul><li><p class="paragraph">Linux & Android Native targets: <a href="https://www.man7.org/linux/man-pages/man2/getrandom.2.html">getrandom(2)</a> when available (Linux Kernel 3.17+ & Android API 26+), with a fallback to reading from <code class="lang-kotlin">/dev/urandom</code> after polling <code class="lang-kotlin">/dev/random</code> once (per process lifetime) to ensure appropriate levels of system entropy are had.</p></li><li><p class="paragraph">Apple targets: <a href="https://github.com/apple-oss-distributions/CommonCrypto/blob/main/include/CommonRandom.h">CCRandomGenerateBytes</a></p></li><li><p class="paragraph">Windows targets: <a href="https://learn.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom">BCryptGenRandom</a></p></li></ul></ul></div></div> |
98 | 98 | </div> |
99 | 99 | <div class="tabbedcontent"> |
100 | 100 | <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="CONSTRUCTOR,TYPE,PROPERTY,FUNCTION">Members</button></div> |
@@ -123,7 +123,7 @@ <h2 class="">Functions</h2> |
123 | 123 | </div> |
124 | 124 | <div class="footer"> |
125 | 125 | <a href="#content" id="go-to-top-link" class="footer--button footer--button_go-to-top"></a> |
126 | | - <span>© 2025-2025 Copyright KotlinCrypto</span> |
| 126 | + <span>© 2023-2025 Copyright KotlinCrypto</span> |
127 | 127 | <span class="pull-right"> |
128 | 128 | <span>Generated by </span> |
129 | 129 | <a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka"> |
|
0 commit comments