summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/namequery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 0db1e367dc..5dadd4d474 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/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;
}