<divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-stat:dokkaHtmlPartial/jvmMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">override </span><spanclass="token keyword">fun </span><ahref="next-bytes.html"><spanclass="token function">nextBytes</span></a><spanclass="token punctuation">(</span>bytes<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><spanclass="token punctuation">)</span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Generates <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html">Byte</a> values and places them into a user-supplied array.</p><pclass="paragraph">The number of random bytes produced is equal to the length of the byte array.</p><h2class="">Parameters</h2><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":kmath-stat:dokkaHtmlPartial/jvmMain"data-filterable-set=":kmath-stat:dokkaHtmlPartial/jvmMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><div><span><span>bytes</span></span></div></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">byte array in which to put the random bytes.</p></div></div></div></div></div></div></div><br><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">override </span><spanclass="token keyword">fun </span><ahref="next-bytes.html"><spanclass="token function">nextBytes</span></a><spanclass="token punctuation">(</span>bytes<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><spanclass="token punctuation">, </span>start<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">, </span>len<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">)</span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Generates <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html">Byte</a> values and places them into a user-supplied array.</p><pclass="paragraph">The array is filled with bytes extracted from random integers. This implies that the number of random bytes generated may be larger than the length of the byte array.</p><h2class="">Parameters</h2><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":kmath-stat:dokkaHtmlPartial/jvmMain"data-filterable-set=":kmath-stat:dokkaHtmlPartial/jvmMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><div><span><span>bytes</span></span></div></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">the array in which to put the generated bytes.</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":kmath-stat:dokkaHtmlPartial/jvmMain"data-filterable-set=":kmath-stat:dokkaHtmlPartial/jvmMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><div><span><span>start</span></span></div></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">the index at which to start inserting the generated bytes.</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":kmath-stat:dokkaHtmlPartial/jvmMain"data-filt