rdgen

command
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 8 Imported by: 0

README

随机数生成工具 rdgen 使用说明

概述

该工具用于生成符合《GM/T 0005-2021 随机性检测规范》 5 随机发生器检测概述 的数据集合。

随机数采集自 "crypto/rand 包提供的随机源,在不同平台上有不同的实现方式。

编译

切换到tools/rddetector目录内运行,编译命令即可

go build .

工具文档

工具用法如下,默认情况按照 《GM/T 0005-2021》设定的样本数量 1000 每组随机数长度不小于 10^6比特运行, 运行结果将会保存在文件中。

randomness 随机数生成工具 rdgen 使用说明

rdgen [-s 生成文件数] [-n 每个文件内bit数] [-o 生成位置]

        示例: rdgen -s 1000 -n 1000000 -o ./data

-n int
    number 每个样本长度(bit) (默认值 1000000)
-o string
    output 生成随机数文件存放目录 (默认值 "target/data")
-s int
    Sample 样本数量 (默认值 1000)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL