Skip to content

Commit

Permalink
add credit for the rand code
Browse files Browse the repository at this point in the history
  • Loading branch information
krig committed May 19, 2024
1 parent 4df6155 commit 628471c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions showcase/carts/space-shooter/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ inline fn rgb565(clr: cart.NeopixelColor) cart.DisplayColor {
};
}

// rand implementation "borrowed" from the blobs cart
var rand: std.rand.DefaultPrng = undefined;
fn rand_float() f32 {
const byte_count = 2;
Expand Down

0 comments on commit 628471c

Please sign in to comment.