Update the webpage (#3902)
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
+2
-1
@@ -1094,7 +1094,8 @@ int
|
||||
main (void)
|
||||
{
|
||||
/* Initialize srand value */
|
||||
srand ((unsigned) jerry_port_get_current_time ());
|
||||
union { double d; unsigned u; } now = { .d = jerry_port_get_current_time () };
|
||||
srand (now.u);
|
||||
|
||||
/* Generate a random number, and print it */
|
||||
const jerry_char_t script[] = "var a = Math.random (); print(a)";
|
||||
|
||||
Reference in New Issue
Block a user