We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cdcff3 commit 3e0b200Copy full SHA for 3e0b200
MC/config/examples/epos4/epos.sh
@@ -1,11 +1,11 @@
1
-#!/bin/bash
+#!/bin/sh
2
# Script based on CRMC example
3
# EPOS4 option files must contain ihepmc set to 2 to print HepMC
4
# data on stdout. -hepmc flag is not needed anymore, but -hepstd is fundamental
5
# in order not to print useless information on stdout (a z-*optns*.mtr file will be created)
6
7
optns="example"
8
-seed=$RANDOM
+seed=$(od -An -N2 -tu2 /dev/urandom | tr -d ' ')
9
EPOS4=""
10
11
if [ -z "$EPO4VSN" ]; then
@@ -62,7 +62,7 @@ fi
62
63
if [ $seed -eq 0 ]; then
64
# Seed can't be 0, random number will be used
65
- seed=$RANDOM
+ seed=$(od -An -N2 -tu2 /dev/urandom | tr -d ' ')
66
fi
67
68
# OR filters the stdout with only HepMC useful data
0 commit comments