added srand kernel method
added static srand method