Minor memory leak fix

v1
Brett 2023-01-04 14:38:17 -05:00
parent 1587f342ad
commit f1254d54c3
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,10 @@ namespace BLT {
distribution = new dist(min, max); distribution = new dist(min, max);
} }
T get(){ T get(){
return *distribution(gen); return (*distribution)(gen);
}
~Random(){
delete distribution;
} }
}; };
} }