Minor memory leak fix
parent
1587f342ad
commit
f1254d54c3
|
@ -26,7 +26,10 @@ namespace BLT {
|
|||
distribution = new dist(min, max);
|
||||
}
|
||||
T get(){
|
||||
return *distribution(gen);
|
||||
return (*distribution)(gen);
|
||||
}
|
||||
~Random(){
|
||||
delete distribution;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue