diff --git a/include/blt/std/random.h b/include/blt/std/random.h index 27900f7..7723483 100644 --- a/include/blt/std/random.h +++ b/include/blt/std/random.h @@ -26,7 +26,10 @@ namespace BLT { distribution = new dist(min, max); } T get(){ - return *distribution(gen); + return (*distribution)(gen); + } + ~Random(){ + delete distribution; } }; }