A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Lua] Renamed host 'power' to 'speed' for hosts
[simgrid.git]
/
examples
/
lua
/
bittorrent
/
bittorrent.lua
diff --git
a/examples/lua/bittorrent/bittorrent.lua
b/examples/lua/bittorrent/bittorrent.lua
index
7be4395
..
b1999b6
100644
(file)
--- a/
examples/lua/bittorrent/bittorrent.lua
+++ b/
examples/lua/bittorrent/bittorrent.lua
@@
-11,6
+11,9
@@
require("simgrid")
require("peer")
require("tracker")
+-- Initialization of the random generator
+table.sort(math)
+math.randomseed(42)
simgrid.platform(arg[1] or "../../platforms/platform.xml")
simgrid.application(arg[2] or "bittorrent.xml")
simgrid.run()