1
0
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:
Jeremy Allison
2000-06-01 17:01:34 +00:00
parent 1365442684
commit f0080e5a39
13 changed files with 603 additions and 531 deletions

View File

@ -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;
}