Commit 068cae67 authored by Jarrod Pas's avatar Jarrod Pas
Browse files

Update random node example

parent 628250eb
Pipeline #1649 passed with stage
in 1 minute and 30 seconds
......@@ -4,7 +4,7 @@ __author__ = "Jarrod Pas <j.pas@usask.ca>"
from random import Random
from pydtn import Network, Node, random_trace, RandomTraffic
from pydtn import Network, Node, RandomTrace, RandomTraffic
class RandomNode(Node):
......@@ -53,7 +53,7 @@ def main():
trace_options = {
'seed': seed,
}
trace = random_trace(nodes, **trace_options)
trace = RandomTrace(nodes, **trace_options)
network = Network(nodes, traffic=traffic, trace=trace)
network.run(until=duration)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment