Skip to content

Instantly share code, notes, and snippets.

View cgundogan's full-sized avatar
🍽️
3735928559 vs. 4196072981

Cenk Gündoğan cgundogan

🍽️
3735928559 vs. 4196072981
View GitHub Profile
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++) {
# 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]
@cgundogan
cgundogan / udp_server.c
Last active November 25, 2015 16:37
simple udp server
#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>