This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 9f5f64c  - Changed from arc4random to rand to avoid problems on ubuntu
9f5f64c is described below

commit 9f5f64c133e9f35d55f462eb5b2f9b3663430284
Author: Christofer Dutz <christofer.d...@c-ware.de>
AuthorDate: Wed May 13 08:20:12 2020 +0200

    - Changed from arc4random to rand to avoid problems on ubuntu
---
 sandbox/plc4c/drivers/simulated/src/driver_simulated.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sandbox/plc4c/drivers/simulated/src/driver_simulated.c 
b/sandbox/plc4c/drivers/simulated/src/driver_simulated.c
index 4614ed1..fa7ef51 100644
--- a/sandbox/plc4c/drivers/simulated/src/driver_simulated.c
+++ b/sandbox/plc4c/drivers/simulated/src/driver_simulated.c
@@ -133,7 +133,7 @@ plc4c_return_code 
plc4c_driver_simulated_read_machine_function(
          * we can also set a custom printf method
          * right , now just create a new random value
          */
-        value_item->value = plc4c_data_create_uint_data(arc4random());
+        value_item->value = plc4c_data_create_uint_data(rand());
 
         // Add the value to the response.
         plc4c_utils_list_insert_tail_value(read_response->items, value_item);

Reply via email to