This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <netdb.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is an example of how to configure ITM/ETM tracing | |
# using openocd if you do not want to modify the application. | |
# | |
# Use like this: | |
# openocd -f configure-trace.openocd | |
# Modify there to match your debugger hw & cpu | |
source [find interface/stlink-v2.cfg] | |
source [find target/stm32f4x_stlink.cfg] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.security.SecureRandom; | |
import java.security.Security; | |
import java.util.Arrays; | |
public class SHA1PRNGTEST { | |
public static void main(String args[]) throws Exception { | |
SecureRandom random = SecureRandom.getInstance("SHA1PRNG"); | |
random.setSeed(1); | |
int number = 0; | |
for (int i = 0; i < 20; i++) { |