Commit c6111eb4 authored by Lynn Garren's avatar Lynn Garren
Browse files

catch uses reference, not copy

parent 896eef37
......@@ -53,7 +53,7 @@ int main() {
}
in.close();
} else throw std::runtime_error("File open error");
} catch(std::runtime_error e) {
} catch(std::runtime_error &e) {
std::ostringstream dStr;
dStr << "Error: " << e.what()
<< " processing seed from file \"" << "/dev/urandom" << "\".";
......
Markdown is supported
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