OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
904b5d3
)
des: reduce number of iterations in test program
author
Mans Rullgard
<mans@mansr.com>
Sun, 3 Jul 2011 11:55:54 +0000
(12:55 +0100)
committer
Mans Rullgard
<mans@mansr.com>
Sun, 3 Jul 2011 12:41:31 +0000
(13:41 +0100)
Testing a million random keys takes annoying long time.
1000 iterations should be enough.
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavutil/des.c
patch
|
blob
|
history
diff --git
a/libavutil/des.c
b/libavutil/des.c
index
a30ef3b
..
857ca91
100644
(file)
--- a/
libavutil/des.c
+++ b/
libavutil/des.c
@@
-402,7
+402,7
@@
int main(void) {
printf("Partial Monte-Carlo test failed\n");
return 1;
}
- for (i = 0; i < 1000
000
; i++) {
+ for (i = 0; i < 1000; i++) {
key[0] = rand64(); key[1] = rand64(); key[2] = rand64();
data = rand64();
av_des_init(&d, key, 192, 0);