ocaml-opentelemetry/opentelemetry/Opentelemetry/Rand_bytes/index.html
2024-02-20 18:26:47 +00:00

2 lines
2.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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.1"/><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> &#x00BB; <a href="../index.html">Opentelemetry</a> &#x00BB; 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">&#45;&gt;</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">&#45;&gt;</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">&#45;&gt;</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">&#45;&gt;</span></span> bytes</span></code></div><div class="spec-doc"><p>Default implementation using <code>Random</code></p></div></div></div></body></html>