Skip to content

Commit

Permalink
lone: transfer random bytes from auxiliary vector
Browse files Browse the repository at this point in the history
No need to copy it. Just point it at it and disable deallocation.
  • Loading branch information
matheusmoreira committed Dec 4, 2023
1 parent f601fa3 commit 2a23f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/lone/modules/intrinsic/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static void lone_auxiliary_value_to_table(struct lone_lisp *lone, struct lone_va
#ifdef AT_RANDOM
case AT_RANDOM:
key = lone_intern_c_string(lone, "random");
value = lone_bytes_create(lone, auxiliary->value.as.pointer, 16);
value = lone_bytes_transfer(lone, auxiliary->value.as.pointer, 16, false);
break;
#endif

Expand Down

0 comments on commit 2a23f16

Please sign in to comment.