diff options
author | Jeremy Allison <jra@samba.org> | 2000-06-01 17:01:34 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-06-01 17:01:34 +0000 |
commit | c2099cfb033c2cdb6035f4f7f50ce21b98e1584d (patch) | |
tree | ebd66d1339c8c2664c4c655acb464b4125dd4c30 /source/libsmb/namequery.c | |
parent | 864e7bde0e804edbb2425b9c4c7ff271553f8169 (diff) | |
download | samba-c2099cfb033c2cdb6035f4f7f50ce21b98e1584d.tar.gz |
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.
Diffstat (limited to 'source/libsmb/namequery.c')
-rw-r--r-- | source/libsmb/namequery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libsmb/namequery.c b/source/libsmb/namequery.c index 0db1e367dc3..5dadd4d474d 100644 --- a/source/libsmb/namequery.c +++ b/source/libsmb/namequery.c @@ -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; } |