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
tianlh
LightGBM-DCU
Commits
68980887
Commit
68980887
authored
May 20, 2017
by
Guolin Ke
Committed by
GitHub
May 20, 2017
Browse files
fix RandInt32 .
parent
339915ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/LightGBM/utils/random.h
include/LightGBM/utils/random.h
+2
-2
No files found.
include/LightGBM/utils/random.h
View file @
68980887
...
...
@@ -95,12 +95,12 @@ public:
private:
inline
int
RandInt16
()
{
x
=
(
214013
*
x
+
2531011
);
return
(
x
>>
16
)
&
0x7FFF
;
return
static_cast
<
int
>
(
(
x
>>
16
)
&
0x7FFF
)
;
}
inline
int
RandInt32
()
{
x
=
(
214013
*
x
+
2531011
);
return
x
&
0x7FFFFFF
;
return
static_cast
<
int
>
(
x
&
0x7FFFFFF
F
)
;
}
unsigned
int
x
=
123456789
;
...
...
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