OSDN Git Service

Initialize the random seed
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Tue, 14 Oct 2008 11:48:48 +0000 (11:48 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Tue, 14 Oct 2008 11:48:48 +0000 (11:48 +0000)
shogi-server

index 771936d..2e2a0ff 100755 (executable)
@@ -260,6 +260,7 @@ def main
   fg_thread = nil
 
   config[:StartCallback] = Proc.new do
+    srand
     if $options["pid-file"]
       write_pid_file($options["pid-file"])
     end