From 07274513e984f0b5544586c74508ccd16e7dcafa Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Jan 2013 17:29:19 +1000 Subject: Remove EFL, since it's been released now. --- libraries/embryo/src/lib/embryo_rand.c | 36 ---------------------------------- 1 file changed, 36 deletions(-) delete mode 100644 libraries/embryo/src/lib/embryo_rand.c (limited to 'libraries/embryo/src/lib/embryo_rand.c') diff --git a/libraries/embryo/src/lib/embryo_rand.c b/libraries/embryo/src/lib/embryo_rand.c deleted file mode 100644 index 627f7ed..0000000 --- a/libraries/embryo/src/lib/embryo_rand.c +++ /dev/null @@ -1,36 +0,0 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#include - -#include "Embryo.h" -#include "embryo_private.h" - -/* exported random number api */ - -static Embryo_Cell -_embryo_rand_rand(Embryo_Program *ep __UNUSED__, Embryo_Cell *params __UNUSED__) -{ - return (Embryo_Cell)(rand() & 0xffff); -} - -static Embryo_Cell -_embryo_rand_randf(Embryo_Program *ep __UNUSED__, Embryo_Cell *params __UNUSED__) -{ - double r; - float f; - - r = (double)(rand() & 0xffff) / 65535.0; - f = (float)r; - return EMBRYO_FLOAT_TO_CELL(f); -} - -/* functions used by the rest of embryo */ - -void -_embryo_rand_init(Embryo_Program *ep) -{ - embryo_program_native_call_add(ep, "rand", _embryo_rand_rand); - embryo_program_native_call_add(ep, "randf", _embryo_rand_randf); -} -- cgit v1.1