git.samba.org
/
amitay
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added sys_fork() and sys_getpid() functions to stop the overhead
[amitay/samba.git]
/
source3
/
libsmb
/
namequery.c
diff --git
a/source3/libsmb/namequery.c
b/source3/libsmb/namequery.c
index 500a2ff94f9b051609eaa40f7b5b7187f53cef6d..0db1e367dc320e1f80a2b5140e7fa7e464ae41de 100644
(file)
--- a/
source3/libsmb/namequery.c
+++ b/
source3/libsmb/namequery.c
@@
-35,7
+35,7
@@
static int generate_trn_id(void)
static int trn_id;
if (trn_id == 0) {
- srandom(getpid());
+ srandom(
sys_
getpid());
}
trn_id = random();