From dc08ed4f1ffb402e8d33ec79d9c3ad2bfcab6fd0 Mon Sep 17 00:00:00 2001 From: ww-rm Date: Sun, 14 Apr 2024 18:04:04 +0800 Subject: [PATCH] update readme --- README.en.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.en.md b/README.en.md index 8b0c365..93d2a91 100644 --- a/README.en.md +++ b/README.en.md @@ -52,6 +52,6 @@ For all sections involving random number generators, custom parameters for rando def rnd_fn(n: int) -> bytes: ... ``` -If no random number generator is passed, the default system-related random number generator is used. On Windows, it utilizes `BCryptGenRandom`, while other systems use `/dev/urandom` for implementation, which is similar to the Python standard library function `os.urandom`. +If no random number generator is passed, the default system-related random number generator is used. On Windows, it utilizes `BCryptGenRandom`, while other systems use `/dev/urandom` for implementation, which is similar to the Python standard library function [`os.urandom`](https://docs.python.org/3/library/os.html#os.urandom). For specific implementation details, refer to [random.c](https://github.com/ww-rm/gmalglib/blob/main/src/gmalglib/core/random.c) under the `OsRandomProc` function. diff --git a/README.md b/README.md index 97359be..4b1ed5b 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,6 @@ print(gmalglib.sm3_digest(b"messagedigest").hex()) def rnd_fn(n: int) -> bytes: ... ``` -如不传入随机数发生器, 则使用默认的系统相关随机数发生器, 在 Windows 下使用 `BCryptGenRandom`, 其余系统使用 `/dev/urandom` 实现, 其实现类似于 Python 标准库函数 `os.urandom`. +如不传入随机数发生器, 则使用默认的系统相关随机数发生器, 在 Windows 下使用 `BCryptGenRandom`, 其余系统使用 `/dev/urandom` 实现, 其实现类似于 Python 标准库函数 [`os.urandom`](https://docs.python.org/3/library/os.html#os.urandom). 具体实现见 [random.c](https://github.com/ww-rm/gmalglib/blob/main/src/gmalglib/core/random.c) 内 `OsRandomProc`.