mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
Getting back to a compilable state (not there yet but close).
Added patches for random -> sys_random.
Added set_effective_xxx patches for AFS code.
Memory allocation changes in spoolss code.
Jeremy.
(This used to be commit c2099cfb03
)
This commit is contained in:
@ -35,10 +35,10 @@ static int generate_trn_id(void)
|
||||
static int trn_id;
|
||||
|
||||
if (trn_id == 0) {
|
||||
srandom(sys_getpid());
|
||||
sys_srandom(sys_getpid());
|
||||
}
|
||||
|
||||
trn_id = random();
|
||||
trn_id = sys_random();
|
||||
|
||||
return trn_id % (unsigned)0x7FFF;
|
||||
}
|
||||
|
Reference in New Issue
Block a user