git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
37b094c
)
winbind: Fix CID 1427625 Calling risky function
author
Volker Lendecke
<vl@samba.org>
Tue, 10 Apr 2018 19:13:37 +0000
(21:13 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 11 Apr 2018 17:07:24 +0000
(19:07 +0200)
Probably not really a problem, but we have generate_random(), so why not
use it?
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_gpupdate.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_gpupdate.c
b/source3/winbindd/winbindd_gpupdate.c
index 48ebb5501aa88621345662a97912dd60c51b54de..c86c007be12e280d7afecb54b123757724ddc9af 100644
(file)
--- a/
source3/winbindd/winbindd_gpupdate.c
+++ b/
source3/winbindd/winbindd_gpupdate.c
@@
-34,7
+34,7
@@
#define GPUPDATE_RAND_OFFSET (30*60)
static uint32_t gpupdate_interval(void)
{
- int rand_int_offset =
rand
() % GPUPDATE_RAND_OFFSET;
+ int rand_int_offset =
generate_random
() % GPUPDATE_RAND_OFFSET;
return GPUPDATE_INTERVAL+rand_int_offset;
}