Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
be9f196d
Commit
be9f196d
authored
Feb 05, 2007
by
Dafydd Harries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test nice_rng_generate_bytes
darcs-hash:20070205191117-c9803-4b3ccb476da684d25f11ab287eb4c0842be61f1b.gz
parent
6739b221
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
random/test.c
random/test.c
+7
-1
No files found.
random/test.c
View file @
be9f196d
...
...
@@ -9,12 +9,18 @@ main (void)
NiceRNG
*
rng
;
gchar
buf
[
9
];
buf
[
8
]
=
'\0'
;
nice_rng_set_new_func
(
nice_rng_glib_new_predictable
);
rng
=
nice_rng_new
();
nice_rng_generate_bytes_print
(
rng
,
8
,
buf
);
buf
[
8
]
=
'\0'
;
//g_debug ("%s", buf);
g_assert
(
0
==
strcmp
(
buf
,
"S9PObXR5"
));
nice_rng_generate_bytes
(
rng
,
8
,
buf
);
g_assert
(
0
==
strcmp
(
buf
,
"
\x09\xd3\x15\xf2\x24\x57\x46\xd8
"
));
nice_rng_free
(
rng
);
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment