Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
7048f4c1
Commit
7048f4c1
authored
Feb 03, 2022
by
Davis King
Browse files
Avoid build error in visual studio
parent
fda984f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dlib/test/rand.cpp
dlib/test/rand.cpp
+6
-6
No files found.
dlib/test/rand.cpp
View file @
7048f4c1
...
@@ -455,12 +455,12 @@ namespace
...
@@ -455,12 +455,12 @@ namespace
{
{
dlib
::
rand
rnd
;
dlib
::
rand
rnd
;
std
::
vector
<
long
>
out
;
std
::
vector
<
uint32
>
out
;
for
(
int
i
=
0
;
i
<
30
;
++
i
)
{
for
(
int
i
=
0
;
i
<
30
;
++
i
)
{
out
.
push_back
(
rnd
.
get_random_32bit_number
());
out
.
push_back
(
rnd
.
get_random_32bit_number
());
}
}
const
std
::
vector
<
long
>
expected
=
{
const
std
::
vector
<
uint32
>
expected
=
{
725333953
,
251387296
,
3200466189
,
2466988778
,
2049276419
,
2620437198
,
2806522923
,
725333953
,
251387296
,
3200466189
,
2466988778
,
2049276419
,
2620437198
,
2806522923
,
2922190659
,
4151412029
,
2894696296
,
1344442829
,
1165961100
,
328304965
,
1533685458
,
2922190659
,
4151412029
,
2894696296
,
1344442829
,
1165961100
,
328304965
,
1533685458
,
3399102146
,
3995382051
,
1569312238
,
2353373514
,
2512982725
,
2903494783
,
787425157
,
3399102146
,
3995382051
,
1569312238
,
2353373514
,
2512982725
,
2903494783
,
787425157
,
...
@@ -472,12 +472,12 @@ namespace
...
@@ -472,12 +472,12 @@ namespace
{
{
dlib
::
rand
rnd
;
dlib
::
rand
rnd
;
rnd
.
set_seed
(
"this seed"
);
rnd
.
set_seed
(
"this seed"
);
std
::
vector
<
long
>
out
;
std
::
vector
<
uint32
>
out
;
for
(
int
i
=
0
;
i
<
30
;
++
i
)
{
for
(
int
i
=
0
;
i
<
30
;
++
i
)
{
out
.
push_back
(
rnd
.
get_random_32bit_number
());
out
.
push_back
(
rnd
.
get_random_32bit_number
());
}
}
const
std
::
vector
<
long
>
expected
=
{
const
std
::
vector
<
uint32
>
expected
=
{
856663397
,
2356564049
,
1192662566
,
3478257893
,
1069117227
,
856663397
,
2356564049
,
1192662566
,
3478257893
,
1069117227
,
1922448468
,
497418632
,
2504525324
,
987414451
,
769612124
,
77224022
,
2998161761
,
1922448468
,
497418632
,
2504525324
,
987414451
,
769612124
,
77224022
,
2998161761
,
1364481427
,
639342008
,
1778351952
,
1931573847
,
3213816676
,
3019312695
,
4179936779
,
1364481427
,
639342008
,
1778351952
,
1931573847
,
3213816676
,
3019312695
,
4179936779
,
...
@@ -489,12 +489,12 @@ namespace
...
@@ -489,12 +489,12 @@ namespace
{
{
dlib
::
rand
rnd
;
dlib
::
rand
rnd
;
rnd
.
set_seed
(
"some other seed"
);
rnd
.
set_seed
(
"some other seed"
);
std
::
vector
<
long
>
out
;
std
::
vector
<
int
>
out
;
for
(
int
i
=
0
;
i
<
30
;
++
i
)
{
for
(
int
i
=
0
;
i
<
30
;
++
i
)
{
out
.
push_back
(
rnd
.
get_integer
(
1000
));
out
.
push_back
(
rnd
.
get_integer
(
1000
));
}
}
const
std
::
vector
<
long
>
expected
=
{
const
std
::
vector
<
int
>
expected
=
{
243
,
556
,
158
,
256
,
772
,
84
,
837
,
920
,
767
,
769
,
939
,
394
,
121
,
367
,
575
,
877
,
861
,
506
,
243
,
556
,
158
,
256
,
772
,
84
,
837
,
920
,
767
,
769
,
939
,
394
,
121
,
367
,
575
,
877
,
861
,
506
,
451
,
845
,
870
,
638
,
825
,
516
,
327
,
25
,
646
,
373
,
386
,
227
};
451
,
845
,
870
,
638
,
825
,
516
,
327
,
25
,
646
,
373
,
386
,
227
};
DLIB_TEST
(
out
==
expected
);
DLIB_TEST
(
out
==
expected
);
...
...
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