mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 04:17:56 -04:00
2 lines
2.6 KiB
HTML
2 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Rand_bytes (opentelemetry.Opentelemetry.Rand_bytes)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../index.html">opentelemetry</a> » <a href="../index.html">Opentelemetry</a> » Rand_bytes</nav><header class="odoc-preamble"><h1>Module <code><span>Opentelemetry.Rand_bytes</span></code></h1><p>Generation of random identifiers.</p><p>Generate random identifiers.</p><p>We need random identifiers for trace IDs and span IDs.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-rand_bytes_16"><a href="#val-rand_bytes_16" class="anchor"></a><code><span><span class="keyword">val</span> rand_bytes_16 : <span><span>(<span>unit <span class="arrow">-></span></span> bytes)</span> <a href="../../../ocaml/Stdlib/index.html#type-ref">ref</a></span></span></code></div><div class="spec-doc"><p>Generate 16 bytes of random data. The implementation can be swapped to use any random generator.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-rand_bytes_8"><a href="#val-rand_bytes_8" class="anchor"></a><code><span><span class="keyword">val</span> rand_bytes_8 : <span><span>(<span>unit <span class="arrow">-></span></span> bytes)</span> <a href="../../../ocaml/Stdlib/index.html#type-ref">ref</a></span></span></code></div><div class="spec-doc"><p>Generate 16 bytes of random data. The implementation can be swapped to use any random generator.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-default_rand_bytes_8"><a href="#val-default_rand_bytes_8" class="anchor"></a><code><span><span class="keyword">val</span> default_rand_bytes_8 : <span>unit <span class="arrow">-></span></span> bytes</span></code></div><div class="spec-doc"><p>Default implementation using <code>Random</code></p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-default_rand_bytes_16"><a href="#val-default_rand_bytes_16" class="anchor"></a><code><span><span class="keyword">val</span> default_rand_bytes_16 : <span>unit <span class="arrow">-></span></span> bytes</span></code></div><div class="spec-doc"><p>Default implementation using <code>Random</code></p></div></div></div></body></html>
|