From 65c1c571a97f93f82797fabfe12e62bb3ab028c1 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 25 Jan 2025 15:23:27 +0100 Subject: [PATCH] created doc for why2_seed_random --- .../functions/core/crypto/why2_seed_random.md | 37 +++++++++++++++++++ docs/functions/index.md | 1 + 2 files changed, 38 insertions(+) create mode 100644 docs/functions/core/crypto/why2_seed_random.md diff --git a/docs/functions/core/crypto/why2_seed_random.md b/docs/functions/core/crypto/why2_seed_random.md new file mode 100644 index 0000000..e078f04 --- /dev/null +++ b/docs/functions/core/crypto/why2_seed_random.md @@ -0,0 +1,37 @@ + + +# why2_seed_random + +## Parameters + +| Identifier | Data type | +| ---------- | ---------------- | +| `seed` | `unsigned long` | + +## Attributes + +| | | +| ------------------ | -------------------------------- | +| **Return type** | `void` | +| **Header comment** | `SEED why2_seeded_random OUTPUT` | +| **Added in commit** | [`25113dc0b3c97178c85ac02c082164a6d36d3c1e`](https://github.com/ENGO150/WHY2/commit/25113dc0b3c97178c85ac02c082164a6d36d3c1e) | + +## Description + +Function inits pseudo random number generator `struct` with `seed`. Seeded numbers can be used with [`why2_seeded_random`](../why2_seeded_random). Also, there is no need to deallocate the PRNG. \ No newline at end of file diff --git a/docs/functions/index.md b/docs/functions/index.md index d206547..cf01e64 100644 --- a/docs/functions/index.md +++ b/docs/functions/index.md @@ -28,6 +28,7 @@ You can find documentation for every *public* function of WHY2 below. | ------------------------------------------------------- | ------------------------------------------------ | | [`why2_sum_segment`](./core/crypto/why2_sum_segment.md) | Calculate SUM++ for input; Used for padding seed | | [`why2_random`](./core/crypto/why2_random.md) | Write crypto-secure random number into dest | +| [`why2_seed_random`](./core/crypto/why2_seed_random.md) | Seed why2_seeded_random output | ## Logger