aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorOminitay <37453713+Ominitay@users.noreply.github.com>2021-10-27 15:53:29 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-10-27 16:07:48 -0400
commitc1a5ff34f3f68a2a0bc32828ab483328cd436fea (patch)
treebad85387a89da38890f72696ccfc0ae3c416ab0f /src/codegen/c.zig
parent9024f27d8f5cb651e2260348ce0ee6fd67fc2c32 (diff)
downloadzig-c1a5ff34f3f68a2a0bc32828ab483328cd436fea.tar.gz
zig-c1a5ff34f3f68a2a0bc32828ab483328cd436fea.zip
std.rand: Refactor `Random` interface
These changes have been made to resolve issue #10037. The `Random` interface was implemented in such a way that causes significant slowdown when calling the `fill` function of the rng used. The `Random` interface is no longer stored in a field of the rng, and is instead returned by the child function `random()` of the rng. This avoids the performance issues caused by the interface.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions