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
2c7e702e
Commit
2c7e702e
authored
Jan 31, 2007
by
Dafydd Harries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add nice_rng_free
darcs-hash:20070131135712-c9803-ffa82a9d3bc6e823d2b2500604ea1866ae5985f5.gz
parent
b0d9d124
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
random/random.c
random/random.c
+6
-0
random/test.c
random/test.c
+1
-0
No files found.
random/random.c
View file @
2c7e702e
...
@@ -12,6 +12,12 @@ nice_rng_new (void)
...
@@ -12,6 +12,12 @@ nice_rng_new (void)
return
rng
;
return
rng
;
}
}
void
nice_rng_free
(
NiceRNG
*
rng
)
{
rng
->
free
(
rng
);
}
void
void
nice_rng_generate_bytes
(
NiceRNG
*
rng
,
guint
len
,
gchar
*
buf
)
nice_rng_generate_bytes
(
NiceRNG
*
rng
,
guint
len
,
gchar
*
buf
)
{
{
...
...
random/test.c
View file @
2c7e702e
...
@@ -14,6 +14,7 @@ main (void)
...
@@ -14,6 +14,7 @@ main (void)
buf
[
8
]
=
'\0'
;
buf
[
8
]
=
'\0'
;
//g_debug ("%s", buf);
//g_debug ("%s", buf);
g_assert
(
0
==
strcmp
(
buf
,
"S9PObXR5"
));
g_assert
(
0
==
strcmp
(
buf
,
"S9PObXR5"
));
nice_rng_free
(
rng
);
return
0
;
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