Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
55f7d65d
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
55f7d65d
编写于
24年前
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Document the 'rand' application.
上级
f1a617ed
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
50 addition
and
1 deletion
+50
-1
CHANGES
CHANGES
+3
-0
apps/app_rand.c
apps/app_rand.c
+1
-1
doc/apps/rand.pod
doc/apps/rand.pod
+46
-0
未找到文件。
CHANGES
浏览文件 @
55f7d65d
...
...
@@ -4,6 +4,9 @@
Changes between 0.9.5 and 0.9.6 [XX XXX 2000]
*) New 'rand' application for creating pseudo-random output.
[Bodo Moeller]
*) Added configuration support for Linux/IA64
[Rolf Haberrecker <rolf@suse.de>]
...
...
This diff is collapsed.
Click to expand it.
apps/app_rand.c
浏览文件 @
55f7d65d
...
...
@@ -176,7 +176,7 @@ long app_RAND_load_files(char *name)
name
=
p
+
1
;
if
(
*
n
==
'\0'
)
break
;
egd
=
RAND_egd
(
n
);
egd
=
RAND_egd
(
n
);
if
(
egd
>
0
)
tot
+=
egd
;
tot
+=
RAND_load_file
(
n
,
1024L
*
1024L
);
if
(
last
)
break
;
...
...
This diff is collapsed.
Click to expand it.
doc/apps/rand.pod
0 → 100644
浏览文件 @
55f7d65d
=pod
=head1 NAME
rand - generate pseudo-random bytes
=head1 SYNOPSIS
B<openssl rand>
[B<-out> I<file>]
[B<-rand> I<file(s)>
[B<-base64>]
I<num>
=head1 DESCRIPTION
The B<rand> command outputs I<num> pseudo-random bytes after seeding
the random number generater once. As in other B<openssl> command
line tools, PRNG seeding uses the file I<$HOME/>B<.rnd> or B<.rnd>
in addition to the files given in the B<-rand> option. A new
I<$HOME>/B<.rnd> or B<.rnd> file will be written back if enough
seeding was obtained from these sources.
=head1 OPTIONS
=over 4
=item B<-out> I<file>
Write to I<file> instead of standard output.
=item B<-rand> I<file(s)>
Use specified file or files or EGD socket (see L<RAND_egd(3)|RAND_egd(3)>)
for seeding the random number generator.
Multiple files can be specified separated by a OS-dependent character.
The separator is B<;> for MS-Windows, B<,> for OpenVSM, and B<:> for
all others.
=item B<-base64>
Perform base64 encoding on the output.
=back
=cut
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部