summaryrefslogtreecommitdiff
path: root/source4/scripting/libjs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-20 07:29:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:48 -0500
commitd5ac1f9bf4062139054fa2b4677f6bde952bec13 (patch)
tree3446de75dba1c6bb6f37155481a44b273b131fe3 /source4/scripting/libjs
parent86d628a292a22973597e0c06d4a36e20c58ae31c (diff)
downloadsamba-d5ac1f9bf4062139054fa2b4677f6bde952bec13.tar.gz
samba-d5ac1f9bf4062139054fa2b4677f6bde952bec13.tar.bz2
samba-d5ac1f9bf4062139054fa2b4677f6bde952bec13.zip
r8640: continue the trend by moving the ejs random calls into an object
(This used to be commit ed4fb68ef7c28e415408e923bd9eefcd2d60f355)
Diffstat (limited to 'source4/scripting/libjs')
-rw-r--r--source4/scripting/libjs/provision.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js
index e9a8aad0cc..58f0e18240 100644
--- a/source4/scripting/libjs/provision.js
+++ b/source4/scripting/libjs/provision.js
@@ -224,6 +224,7 @@ function provision_guess()
var subobj = new Object();
var nss = nss_init();
var lp = loadparm_init();
+ random_init(local);
subobj.REALM = lp.get("realm");
subobj.DOMAIN = lp.get("workgroup");
@@ -277,6 +278,7 @@ function newuser(username, unixname, password, message)
var lp = loadparm_init();
var samdb = lp.get("sam database");
var ldb = ldb_init();
+ random_init(local);
/* connect to the sam */
var ok = ldb.connect(samdb);