大家进来帮我看看这样调用什么意思?this.rng_seed_time = function()
function SecureRandom() {
this.rng_state;
this.rng_pool;
this.rng_pptr;
this.rng_pool = new Array();
var rng_psize = 256;
this.rng_seed_int = function(x) {
this.rng_pool[this.rng_pptr++] ^= x & 255;
this.rng_pool[this.rng_pptr++] ^= (x >> 8) & 255;
this.rng_pool[this.rng_pptr++] ^= (x >> 16) & 255;
this.rng_pool[this.rng_pptr++] ^= (x >> 24) & 255;
if (this.rng_pptr >= rng_psize) this.rng_pptr-=rng_psize;
}
this.rng_seed_time = function() {
this.rng_seed_int(new Date().getTime());
}
}
--------------
其中的
this.rng_seed_int = function(x)
this.rng_seed_time = function()
这种function()然后赋值的一个变量,是什么意思?书上也没有看介绍过这样的定义法,function(x)这个是定义函数吗?定义函数不是要有函数名吗?
象这样才是标准的函数
function SecureRandom()
他这样直接用,
this.rng_seed_int = function(x)
this.rng_seed_time = function()
我真不知道什么意思,望大家给指点一下,这是怎么一个定义法?谢谢!