summaryrefslogtreecommitdiff
path: root/generator/photon.py
diff options
context:
space:
mode:
Diffstat (limited to 'generator/photon.py')
-rw-r--r--generator/photon.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/generator/photon.py b/generator/photon.py
index 00f366d..e656428 100644
--- a/generator/photon.py
+++ b/generator/photon.py
@@ -61,6 +61,8 @@ def socket_iterator(nelements, socket):
class G4ParallelGenerator(object):
def __init__(self, nprocesses, material, base_seed=None):
self.material = material
+ if base_seed is None:
+ base_seed = np.random.randint(100000000)
base_address = 'ipc:///tmp/chroma_'+str(uuid.uuid4())
self.vertex_address = base_address + '.vertex'
self.photon_address = base_address + '.photon'