seed48.c
来自「linux内核」· C语言 代码 · 共 20 行
C
20 行
/* * seed48.c */#include <stdlib.h>#include <stdint.h>#include <string.h>extern unsigned short __rand48_seed[3];unsigned short *seed48(const unsigned short xsubi[3]){ static unsigned short oldseed[3]; memcpy(oldseed, __rand48_seed, sizeof __rand48_seed); memcpy(__rand48_seed, xsubi, sizeof __rand48_seed); return oldseed;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?